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:
Arun Raghavan 2017-05-27 05:19:20 +05:30 committed by Tim-Philipp Müller
parent 46b1a6e505
commit 41a59cddb6

View file

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