summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c
index 0e8d7e4d63..7d1eb20c3f 100644
--- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c
+++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c
@@ -2292,10 +2292,15 @@ setup_source (GstURISourceBin * urisrc)
return TRUE;
} else if (urisrc->is_stream) {
- GST_DEBUG_OBJECT (urisrc, "Setting up streaming");
- /* do the stream things here */
- if (!setup_typefind (urisrc, NULL))
- goto streaming_failed;
+ if (!urisrc->src_np_sig_id) {
+ GST_DEBUG_OBJECT (urisrc, "Setting up streaming");
+ /* do the stream things here */
+ if (!setup_typefind (urisrc, NULL))
+ goto streaming_failed;
+ } else {
+ GST_DEBUG_OBJECT (urisrc, "Not setting up streaming yet, waiting for"
+ " dynamic pads to appear");
+ }
} else {
GstIterator *pads_iter;
gboolean done = FALSE;