urisourcebin: Fix inverted check for an existing slot

CID 1363330
This commit is contained in:
Sebastian Dröge 2017-02-28 15:15:31 +02:00
parent f41198db9d
commit bd9fd89d61

View 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);