mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
tests: fix test-oss4 to treat an empty device name the same as a NULL name
This commit is contained in:
parent
039604b11f
commit
54986f85c6
1 changed files with 2 additions and 1 deletions
|
@ -183,7 +183,8 @@ probe_element (const gchar * name)
|
|||
* if we try to query the "device-name" property when the device isn't open */
|
||||
g_object_set (element, "device", "/dev/does/not/exist", NULL);
|
||||
g_object_get (element, "device-name", &devname, NULL);
|
||||
g_assert (devname == NULL);
|
||||
GST_LOG ("devname: '%s'", GST_STR_NULL (devname));
|
||||
g_assert (devname == NULL || *devname == '\0');
|
||||
|
||||
/* and now for real */
|
||||
|
||||
|
|
Loading…
Reference in a new issue