urisourcebin: Fix inverted check for an existing slot
authorSebastian Dröge <sebastian@centricular.com>
Tue, 28 Feb 2017 13:15:31 +0000 (15:15 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 28 Feb 2017 13:15:31 +0000 (15:15 +0200)
CID 1363330

gst/playback/gsturisourcebin.c

index 4824668..e0fc757 100644 (file)
@@ -1725,7 +1725,7 @@ analyse_source (GstURISourceBin * urisrc, gboolean * is_raw,
           GST_URI_SOURCE_BIN_LOCK (urisrc);
           if (use_queue) {
             OutputSlotInfo *slot = get_output_slot (urisrc, FALSE, FALSE, NULL);
-            if (slot)
+            if (!slot)
               goto no_slot;
 
             gst_pad_link (pad, slot->sinkpad);