mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtpssrcdemux: Don't cross the internal links
We had the wrong condition to check for the internal links, so RTP and RTCP pads got crossed!
This commit is contained in:
parent
078ff16abe
commit
f4c3aef13a
1 changed files with 4 additions and 2 deletions
|
@ -852,10 +852,12 @@ src_pad_compare_func (gconstpointer a, gconstpointer b)
|
|||
{
|
||||
GstPad *pad = GST_PAD (g_value_get_object (a));
|
||||
const gchar *prefix = g_value_get_string (b);
|
||||
gint res = 1;
|
||||
gint res;
|
||||
|
||||
/* 0 means equal means we accept the pad, accepted if there is a name
|
||||
* and it starts with the prefix */
|
||||
GST_OBJECT_LOCK (pad);
|
||||
res = !GST_PAD_NAME (pad) || g_str_has_prefix (GST_PAD_NAME (pad), prefix);
|
||||
res = !GST_PAD_NAME (pad) || !g_str_has_prefix (GST_PAD_NAME (pad), prefix);
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Reference in a new issue