mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
devicemonitor: Return NULL instead of FALSE
Same effect, meaning is clearer. https://bugzilla.gnome.org/show_bug.cgi?id=789319
This commit is contained in:
parent
46b1a6e505
commit
41a59cddb6
1 changed files with 2 additions and 2 deletions
|
@ -362,13 +362,13 @@ gst_device_monitor_get_devices (GstDeviceMonitor * monitor)
|
|||
if (monitor->priv->filters->len == 0) {
|
||||
GST_OBJECT_UNLOCK (monitor);
|
||||
GST_WARNING_OBJECT (monitor, "No filters have been set");
|
||||
return FALSE;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (monitor->priv->providers->len == 0) {
|
||||
GST_OBJECT_UNLOCK (monitor);
|
||||
GST_WARNING_OBJECT (monitor, "No providers match the current filters");
|
||||
return FALSE;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
again:
|
||||
|
|
Loading…
Reference in a new issue