diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2016-07-13 16:02:25 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-07-15 16:43:07 +0100 |
commit | c1d55f29a1a7a5de6e43c21d08991b305fedd788 (patch) | |
tree | 08bcefe73cc60ce9b15d1349361158a810921333 /tests | |
parent | 657a9c23d68447aac4f44d81c7e1157d2d6dc732 (diff) |
playbin3: fix leaks of collection returned by message parse API
gst_message_parse_stream_collection() and
gst_message_parse_streams_selected() actually return a reffed
GstStreamCollection.
https://bugzilla.gnome.org/show_bug.cgi?id=768776
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/decodebin_next/decodebin3.c | 1 | ||||
-rw-r--r-- | tests/examples/decodebin_next/playbin-test.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/examples/decodebin_next/decodebin3.c b/tests/examples/decodebin_next/decodebin3.c index 2eb2a6838..53a8249dc 100644 --- a/tests/examples/decodebin_next/decodebin3.c +++ b/tests/examples/decodebin_next/decodebin3.c @@ -223,6 +223,7 @@ _on_bus_message (GstBus * bus, GstMessage * message, MyDataStruct * data) /* In 5s try to change streams */ data->timeout_id = g_timeout_add_seconds (5, (GSourceFunc) switch_streams, data); + gst_object_unref (collection); } break; } diff --git a/tests/examples/decodebin_next/playbin-test.c b/tests/examples/decodebin_next/playbin-test.c index d8e9a881a..38a328c3f 100644 --- a/tests/examples/decodebin_next/playbin-test.c +++ b/tests/examples/decodebin_next/playbin-test.c @@ -217,6 +217,7 @@ _on_bus_message (GstBus * bus, GstMessage * message, MyDataStruct * data) /* In 5s try to change streams */ data->timeout_id = g_timeout_add_seconds (5, (GSourceFunc) switch_streams, data); + gst_object_unref (collection); } break; } |