Commit 7a236e23 authored by Seungha Yang's avatar Seungha Yang Committed by Edward Hervey
Browse files

playbin3: Delay linking text output until video stream is shown

We are not sure that which stream's collection arrives first
when there are multiple parsebins such as adaptive streaming.

https://bugzilla.gnome.org/show_bug.cgi?id=785120
parent afa2cbf3
......@@ -2907,7 +2907,10 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstPlayBin3 * playbin)
/* If we're expecting either audio or video,
* wait for them to appear before configuring playsink */
if ((playbin->selected_stream_types & ~playbin->active_stream_types &
if ((playbin->active_stream_types & GST_STREAM_TYPE_TEXT) &&
!(playbin->active_stream_types & GST_STREAM_TYPE_VIDEO)) {
GST_LOG_OBJECT (playbin, "Have text stream but no video yet, Wating");
} else if ((playbin->selected_stream_types & ~playbin->active_stream_types &
(GST_STREAM_TYPE_VIDEO | GST_STREAM_TYPE_AUDIO))
== 0) {
no_more_pads_cb (decodebin, playbin);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment