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
This commit is contained in:
Thiago Santos 2016-03-31 18:23:22 -03:00
parent 6efda04059
commit 8b777669f5

View file

@ -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;