fix element_error

Original commit message from CVS:
fix element_error
This commit is contained in:
Thomas Vander Stichele 2004-01-19 18:22:57 +00:00
parent 34ac635d74
commit cd0423ceeb
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2004-01-19 Thomas Vander Stichele <thomas at apestaart dot org>
* sys/v4l/v4l-overlay_calls.c: (gst_v4l_set_overlay):
* sys/v4l2/v4l2-overlay_calls.c: (gst_v4l2_set_display),
(gst_v4l2_set_window), (gst_v4l2_enable_overlay):
fix element_error
2004-01-19 Thomas Vander Stichele <thomas at apestaart dot org> 2004-01-19 Thomas Vander Stichele <thomas at apestaart dot org>
* sys/v4l/v4l_calls.h: * sys/v4l/v4l_calls.h:

View file

@ -65,13 +65,15 @@ gst_v4l_set_overlay (GstV4lElement *v4lelement)
switch (system(buff)) switch (system(buff))
{ {
case -1: case -1:
g_warning("Could not start v4l-conf: %s", g_strerror(errno)); gst_element_error (v4lelement, RESOURCE, FAILED,
(_("Could not start v4l-conf")), GST_ERROR_SYSTEM);
g_free(buff); g_free(buff);
return FALSE; return FALSE;
case 0: case 0:
break; break;
default: default:
g_warning("v4l-conf failed to run correctly: %s", g_strerror(errno)); gst_element_error (v4lelement, RESOURCE, FAILED,
(_("Executing v4l-conf failed")), GST_ERROR_SYSTEM);
g_free(buff); g_free(buff);
return FALSE; return FALSE;
} }