gst_stream_collection_add_stream() consumes the collection reference
passed to it but gst_stream_collection_get_stream() is (transfer none).
Fix this pipeline:
playbin3
uri=http://127.0.0.1:8079/defaults/exMPD_BIP_TC1/exMPD_BIP_TC1.mpd
https://bugzilla.gnome.org/show_bug.cgi?id=769270
for (i = 0; i < nb_stream; i++) {
GstStream *stream =
gst_stream_collection_get_stream (dbin->main_input->collection, i);
- gst_stream_collection_add_stream (res, stream);
+ gst_stream_collection_add_stream (res, gst_object_ref (stream));
}
}
for (i = 0; i < nb_stream; i++) {
GstStream *stream =
gst_stream_collection_get_stream (input->collection, i);
- gst_stream_collection_add_stream (res, stream);
+ gst_stream_collection_add_stream (res, gst_object_ref (stream));
}
}
}