summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2021-02-15 16:05:30 +0000
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-02-16 22:58:22 +0000
commitc7f1fd832057f9bc7c3cd0724d47d98ed0a03a91 (patch)
tree1f06d01fa9f66c375b36544d18c9f299753b77cd /gst
parent29aeba639a63b8570c46754e6fb0f16988ed5e11 (diff)
downloadgstreamer-plugins-base-c7f1fd832057f9bc7c3cd0724d47d98ed0a03a91.tar.gz
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>
Diffstat (limited to 'gst')
-rw-r--r--gst/playback/gsturidecodebin3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/playback/gsturidecodebin3.c b/gst/playback/gsturidecodebin3.c
index 6d0d77946..0f6456559 100644
--- a/gst/playback/gsturidecodebin3.c
+++ b/gst/playback/gsturidecodebin3.c
@@ -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)