Commit a0959afb authored by Michael Smith's avatar Michael Smith
Browse files

playbin2: don't leak selector when getting current stream numbers.

parent 88110ea6
......@@ -1230,6 +1230,7 @@ get_current_stream_number (GstPlayBin * playbin, GPtrArray * channels)
pad = g_ptr_array_index (channels, i);
if ((selector = gst_pad_get_parent (pad))) {
g_object_get (selector, "active-pad", &current, NULL);
gst_object_unref (selector);
if (pad == current) {
gst_object_unref (current);
......@@ -1242,9 +1243,6 @@ get_current_stream_number (GstPlayBin * playbin, GPtrArray * channels)
}
}
if (selector)
gst_object_unref (selector);
return ret;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment