urisourcebin: Set streams-aware flag
authorSeungha Yang <seungha.yang@navercorp.com>
Fri, 11 May 2018 11:25:34 +0000 (20:25 +0900)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 18 Jul 2018 07:22:56 +0000 (09:22 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=777213

https://bugzilla.gnome.org/show_bug.cgi?id=775132

gst/playback/gsturisourcebin.c

index 2713852..f91e773 100644 (file)
@@ -420,7 +420,8 @@ gst_uri_source_bin_init (GstURISourceBin * urisrc)
   urisrc->ring_buffer_max_size = DEFAULT_RING_BUFFER_MAX_SIZE;
   urisrc->last_buffering_pct = -1;
 
-  GST_OBJECT_FLAG_SET (urisrc, GST_ELEMENT_FLAG_SOURCE);
+  GST_OBJECT_FLAG_SET (urisrc,
+      GST_ELEMENT_FLAG_SOURCE | GST_BIN_FLAG_STREAMS_AWARE);
   gst_bin_set_suppressed_flags (GST_BIN (urisrc),
       GST_ELEMENT_FLAG_SOURCE | GST_ELEMENT_FLAG_SINK);
 }