mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
uridecodebin3: make caps property work
The caps set on uridecodebin3 via the "caps" property were never passed to the internal decodebin3, so did absolutely nothing. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/837 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1034>
This commit is contained in:
parent
29aeba639a
commit
c7f1fd8320
1 changed files with 3 additions and 0 deletions
|
@ -1106,6 +1106,9 @@ gst_uri_decode_bin3_change_state (GstElement * element,
|
|||
GstURIDecodeBin3 *uridecodebin = (GstURIDecodeBin3 *) element;
|
||||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_NULL_TO_READY:
|
||||
g_object_set (uridecodebin->decodebin, "caps", uridecodebin->caps, NULL);
|
||||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
ret = activate_next_play_item (uridecodebin);
|
||||
if (ret == GST_STATE_CHANGE_FAILURE)
|
||||
|
|
Loading…
Reference in a new issue