diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2016-07-14 10:33:38 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-07-18 13:58:39 +0100 |
commit | 9834782afa1e5eada76cda985f301562fae1d470 (patch) | |
tree | 2b849d72484584f67e77110bb009ddc33e08d2c2 /gst | |
parent | 83f30627cd9460157935e7e9603c60a15555967e (diff) |
playbin3: fix stream leak
The stream returned by gst_message_streams_selected_get_stream() is
reffed.
https://bugzilla.gnome.org/show_bug.cgi?id=768811
Diffstat (limited to 'gst')
-rw-r--r-- | gst/playback/gstplaybin3.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/playback/gstplaybin3.c b/gst/playback/gstplaybin3.c index a68a72250..588c57284 100644 --- a/gst/playback/gstplaybin3.c +++ b/gst/playback/gstplaybin3.c @@ -3128,8 +3128,11 @@ gst_play_bin3_handle_message (GstBin * bin, GstMessage * msg) update_combiner_info (playbin); len = gst_message_streams_selected_get_size (msg); for (i = 0; i < len; i++) { - set_selected_stream (playbin, - gst_message_streams_selected_get_stream (msg, i)); + GstStream *stream; + + stream = gst_message_streams_selected_get_stream (msg, i); + set_selected_stream (playbin, stream); + gst_object_unref (stream); } if (pstate) playbin->do_stream_selections = FALSE; |