summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-10-21 12:24:19 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-10-21 19:07:24 +0200
commit9d0fefc6170b6d63e869e5ac07862003816246d2 (patch)
treec352febf3d94255bae92bd6ac25a3f7e119790a9
parent8cd8339893743f674aa658459e66af4bccdc8838 (diff)
uridecodebin: workaround internal decodebin2 failing state change
Fixes #632656.
-rw-r--r--gst/playback/gsturidecodebin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c
index 19af7d149..a76c95011 100644
--- a/gst/playback/gsturidecodebin.c
+++ b/gst/playback/gsturidecodebin.c
@@ -1569,6 +1569,8 @@ type_found (GstElement * typefind, guint probability,
if (!gst_element_link_pads (queue, "src", dec_elem, "sink"))
goto could_not_link;
+ /* PLAYING in one go might fail (see bug #632782) */
+ gst_element_set_state (dec_elem, GST_STATE_PAUSED);
gst_element_set_state (dec_elem, GST_STATE_PLAYING);
gst_element_set_state (queue, GST_STATE_PLAYING);