projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88110ea
)
playbin2: don't leak selector when getting current stream numbers.
author
Michael Smith
<msmith@songbirdnest.com>
Fri, 3 Apr 2009 17:51:42 +0000
(10:51 -0700)
committer
Michael Smith
<msmith@songbirdnest.com>
Fri, 3 Apr 2009 17:51:42 +0000
(10:51 -0700)
gst/playback/gstplaybin2.c
patch
|
blob
|
history
diff --git
a/gst/playback/gstplaybin2.c
b/gst/playback/gstplaybin2.c
index
483e1ed
..
e48116a
100644
(file)
--- a/
gst/playback/gstplaybin2.c
+++ b/
gst/playback/gstplaybin2.c
@@
-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", ¤t, 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;
}