From ef1fa84575b06db3b079c5955efc57ac0a4a583b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 30 Jan 2009 10:51:11 -0800 Subject: [PATCH] Unref active pad from selector when finding active stream. --- gst/playback/gstplaybin2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index d6cd55c00c..b38185af81 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -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); } }