mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Unref active pad from selector when finding active stream.
This commit is contained in:
parent
f7abf8ed94
commit
ef1fa84575
1 changed files with 4 additions and 0 deletions
|
@ -1205,9 +1205,13 @@ get_current_stream_number (GstPlayBin * playbin, GPtrArray * channels)
|
|||
g_object_get (selector, "active-pad", ¤t, NULL);
|
||||
|
||||
if (pad == current) {
|
||||
gst_object_unref (current);
|
||||
ret = i;
|
||||
break;
|
||||
}
|
||||
|
||||
if (current)
|
||||
gst_object_unref (current);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue