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
This commit is contained in:
parent
83f30627cd
commit
9834782afa
@ -3128,8 +3128,11 @@ gst_play_bin3_handle_message (GstBin * bin, GstMessage * msg)
|
|||||||
update_combiner_info (playbin);
|
update_combiner_info (playbin);
|
||||||
len = gst_message_streams_selected_get_size (msg);
|
len = gst_message_streams_selected_get_size (msg);
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
set_selected_stream (playbin,
|
GstStream *stream;
|
||||||
gst_message_streams_selected_get_stream (msg, i));
|
|
||||||
|
stream = gst_message_streams_selected_get_stream (msg, i);
|
||||||
|
set_selected_stream (playbin, stream);
|
||||||
|
gst_object_unref (stream);
|
||||||
}
|
}
|
||||||
if (pstate)
|
if (pstate)
|
||||||
playbin->do_stream_selections = FALSE;
|
playbin->do_stream_selections = FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user