mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
tests: Hold ref while creating second media
To test if the media aren't shared, make sure we keep the first one while creating a second otherwise the same memory address may be reused.
This commit is contained in:
parent
025ac34580
commit
4a99e1cf56
1 changed files with 2 additions and 1 deletions
|
@ -78,11 +78,12 @@ GST_START_TEST (test_launch_construct)
|
|||
|
||||
media = gst_rtsp_media_factory_construct (factory, url);
|
||||
fail_unless (GST_IS_RTSP_MEDIA (media));
|
||||
g_object_unref (media);
|
||||
|
||||
media2 = gst_rtsp_media_factory_construct (factory, url);
|
||||
fail_unless (GST_IS_RTSP_MEDIA (media2));
|
||||
fail_if (media == media2);
|
||||
|
||||
g_object_unref (media);
|
||||
g_object_unref (media2);
|
||||
|
||||
gst_rtsp_url_free (url);
|
||||
|
|
Loading…
Reference in a new issue