ssrcdemux: fix comparison

A NULL means no pad was found.
This commit is contained in:
Wim Taymans 2009-12-21 14:55:16 +01:00 committed by Wim Taymans
parent 121c001437
commit c611bbaa8e

View file

@ -386,7 +386,7 @@ gst_rtp_ssrc_demux_clear_ssrc (GstRtpSsrcDemux * demux, guint32 ssrc)
GST_PAD_LOCK (demux);
dpad = find_demux_pad_for_ssrc (demux, ssrc);
if (dpad != NULL)
if (dpad == NULL)
goto unknown_pad;
GST_DEBUG_OBJECT (demux, "clearing pad for SSRC %08x", ssrc);