From 8b777669f5c5030a9115d7da6a7a8ae144b415b8 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 31 Mar 2016 18:23:22 -0300 Subject: [PATCH] tests: mssdemux: do not use gst_object_unref for pure GObject* Deallocate GObject* with g_object_unref instead of gst_object_unref. Even if it works now, it is confusing and in the future it might not work if any GstObject specifics are added. https://bugzilla.gnome.org/show_bug.cgi?id=762142 --- tests/check/elements/mssdemux.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/check/elements/mssdemux.c b/tests/check/elements/mssdemux.c index 78a1863..d5cc96c 100644 --- a/tests/check/elements/mssdemux.c +++ b/tests/check/elements/mssdemux.c @@ -206,7 +206,7 @@ GST_START_TEST (testSeek) gst_test_http_src_install_callbacks (&http_src_callbacks, inputTestData); gst_adaptive_demux_test_seek (DEMUX_ELEMENT_NAME, "http://unit.test/Manifest", testData); - gst_object_unref (testData); + g_object_unref (testData); } GST_END_TEST; @@ -273,7 +273,7 @@ run_seek_position_test (gdouble rate, GstSeekType start_type, gst_test_http_src_install_callbacks (&http_src_callbacks, inputTestData); gst_adaptive_demux_test_seek (DEMUX_ELEMENT_NAME, "http://unit.test/Manifest", testData); - gst_object_unref (testData); + g_object_unref (testData); } GST_START_TEST (testSeekKeyUnitPosition) @@ -404,7 +404,7 @@ GST_START_TEST (testDownloadError) gst_test_http_src_install_callbacks (&http_src_callbacks, inputTestData); gst_adaptive_demux_test_run (DEMUX_ELEMENT_NAME, "http://unit.test/Manifest", &test_callbacks, testData); - gst_object_unref (testData); + g_object_unref (testData); } GST_END_TEST; @@ -505,7 +505,7 @@ GST_START_TEST (testQuery) gst_test_http_src_install_callbacks (&http_src_callbacks, inputTestData); gst_adaptive_demux_test_run (DEMUX_ELEMENT_NAME, "http://unit.test/Manifest", &test_callbacks, testData); - gst_object_unref (testData); + g_object_unref (testData); } GST_END_TEST; @@ -597,7 +597,7 @@ GST_START_TEST (testFragmentDownloadError) gst_test_http_src_install_callbacks (&http_src_callbacks, inputTestData); gst_adaptive_demux_test_run (DEMUX_ELEMENT_NAME, "http://unit.test/Manifest", &test_callbacks, testData); - gst_object_unref (testData); + g_object_unref (testData); } GST_END_TEST; -- 2.7.4