Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philippe Normand
gst-plugins-bad
Commits
35b6411d
Commit
35b6411d
authored
Apr 02, 2018
by
Hyunjun Ko
Committed by
Sreerenj Balachandran
Apr 02, 2018
Browse files
msdk: dec: rename the function to what it means more exactly.
https://bugzilla.gnome.org/show_bug.cgi?id=793707
parent
90491d88
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/msdk/gstmsdkdec.c
View file @
35b6411d
...
...
@@ -377,7 +377,7 @@ _gst_caps_has_feature (const GstCaps * caps, const gchar * feature)
}
static
gboolean
gst_msdk_find_preferred_caps_feature
(
GstMsdkDec
*
thiz
,
const
char
*
feature
)
srcpad_can_dmabuf
(
GstMsdkDec
*
thiz
)
{
gboolean
ret
=
FALSE
;
GstCaps
*
caps
,
*
out_caps
;
...
...
@@ -394,7 +394,7 @@ gst_msdk_find_preferred_caps_feature (GstMsdkDec * thiz, const char *feature)
||
out_caps
==
caps
)
goto
done
;
if
(
_gst_caps_has_feature
(
out_caps
,
feature
))
if
(
_gst_caps_has_feature
(
out_caps
,
GST_CAPS_FEATURE_MEMORY_DMABUF
))
ret
=
TRUE
;
done:
...
...
@@ -426,8 +426,7 @@ gst_msdkdec_set_src_caps (GstMsdkDec * thiz)
gst_caps_unref
(
output_state
->
caps
);
output_state
->
caps
=
gst_video_info_to_caps
(
&
output_state
->
info
);
if
(
gst_msdk_find_preferred_caps_feature
(
thiz
,
GST_CAPS_FEATURE_MEMORY_DMABUF
))
if
(
srcpad_can_dmabuf
(
thiz
))
gst_caps_set_features
(
output_state
->
caps
,
0
,
gst_caps_features_new
(
GST_CAPS_FEATURE_MEMORY_DMABUF
,
NULL
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment