mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
dashdemux: tests: use g_object_unref for test data
The GstDashDemuxTestCase object is allocated using g_object_newv
but in many places was being deallocated using gst_object_unref.
This was caused by commit ae3ed25025
.
https://bugzilla.gnome.org/show_bug.cgi?id=762142
This commit is contained in:
parent
9d7b525f19
commit
6efda04059
1 changed files with 7 additions and 7 deletions
|
@ -284,7 +284,7 @@ GST_START_TEST (testTwoPeriods)
|
|||
gst_test_http_src_install_callbacks (&http_src_callbacks, inputTestData);
|
||||
gst_adaptive_demux_test_run (DEMUX_ELEMENT_NAME,
|
||||
"http://unit.test/test.mpd", &test_callbacks, testData);
|
||||
gst_object_unref (testData);
|
||||
g_object_unref (testData);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -421,7 +421,7 @@ GST_START_TEST (testParameters)
|
|||
gst_test_http_src_install_callbacks (&http_src_callbacks, inputTestData);
|
||||
gst_adaptive_demux_test_run (DEMUX_ELEMENT_NAME, "http://unit.test/test.mpd",
|
||||
&test_callbacks, testData);
|
||||
gst_object_unref (testData);
|
||||
g_object_unref (testData);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -494,7 +494,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/test.mpd", testData);
|
||||
gst_object_unref (testData);
|
||||
g_object_unref (testData);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -584,7 +584,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/test.mpd", testData);
|
||||
gst_object_unref (testData);
|
||||
g_object_unref (testData);
|
||||
}
|
||||
|
||||
GST_START_TEST (testSeekKeyUnitPosition)
|
||||
|
@ -758,7 +758,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/test.mpd",
|
||||
&test_callbacks, testData);
|
||||
gst_object_unref (testData);
|
||||
g_object_unref (testData);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -878,7 +878,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/test.mpd", &test_callbacks, testData);
|
||||
gst_object_unref (testData);
|
||||
g_object_unref (testData);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -989,7 +989,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/test.mpd", &test_callbacks, testData);
|
||||
gst_object_unref (testData);
|
||||
g_object_unref (testData);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
|
Loading…
Reference in a new issue