Original commit message from CVS:
fix element_error
+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>
* sys/v4l/v4l_calls.h:
switch (system(buff))
{
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);
return FALSE;
case 0:
break;
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);
return FALSE;
}