Unref active pad from selector when finding active stream.

This commit is contained in:
Michael Smith 2009-01-30 10:51:11 -08:00
parent f7abf8ed94
commit ef1fa84575

View file

@ -1205,9 +1205,13 @@ get_current_stream_number (GstPlayBin * playbin, GPtrArray * channels)
g_object_get (selector, "active-pad", &current, NULL);
if (pad == current) {
gst_object_unref (current);
ret = i;
break;
}
if (current)
gst_object_unref (current);
}
}