diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-05-31 20:41:14 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-05-31 20:41:14 +0100 |
commit | 889a1a9b905d9570fb3305b4d765697f6a07ac5d (patch) | |
tree | 1a6d5046d9f19a394a2c34eb99904d717f12355c /sys/androidmedia | |
parent | fe62233b83840ae738871ef78d7dd814de8690ca (diff) | |
download | gstreamer-plugins-bad-889a1a9b905d9570fb3305b4d765697f6a07ac5d.tar.gz |
androidmedia: fix error debug message when camera doesn't exist
Makes no sense to include the system error here since errno
will likely not be set and then it says 'system error: success'
which is confusing.
https://bugzilla.gnome.org/show_bug.cgi?id=767087
Diffstat (limited to 'sys/androidmedia')
-rw-r--r-- | sys/androidmedia/gstahcsrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/androidmedia/gstahcsrc.c b/sys/androidmedia/gstahcsrc.c index 33d79be63..6af497fb3 100644 --- a/sys/androidmedia/gstahcsrc.c +++ b/sys/androidmedia/gstahcsrc.c @@ -2192,13 +2192,13 @@ gst_ahc_src_open (GstAHCSrc * self) gint num_cams = gst_ah_camera_get_number_of_cameras (); if (num_cams > 0 && self->device < num_cams) { GST_ELEMENT_ERROR (self, RESOURCE, NOT_FOUND, - ("Unable to open device '%d'.", self->device), GST_ERROR_SYSTEM); + ("Unable to open device '%d'.", self->device), (NULL)); } else if (num_cams > 0) { GST_ELEMENT_ERROR (self, RESOURCE, NOT_FOUND, - ("Device '%d' does not exist.", self->device), GST_ERROR_SYSTEM); + ("Device '%d' does not exist.", self->device), (NULL)); } else { GST_ELEMENT_ERROR (self, RESOURCE, NOT_FOUND, - ("There are no cameras available on this device."), GST_ERROR_SYSTEM); + ("There are no cameras available on this device."), (NULL)); } } |