remove_range_foreach (GQuark field_id, const GValue * value, GstStructure * st)
{
GType ftype = G_VALUE_TYPE (value);
- const gchar *fname;
+ /* const gchar *fname; */
if (ftype == GST_TYPE_INT_RANGE || ftype == GST_TYPE_DOUBLE_RANGE ||
ftype == GST_TYPE_FRACTION_RANGE) {
return FALSE;
}
- fname = g_quark_to_string (field_id);
-
+ /* fname = g_quark_to_string (field_id); */
/* if (strstr (fname, "framerate") || strstr (fname, "pixel-aspect-ratio") || */
/* strstr (fname, "rate")) { */
/* gst_structure_remove_field (st, g_quark_to_string (field_id)); */
gtk_main ();
+ g_source_remove (watch_id);
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (pipeline);
g_main_loop_run (loop);
+ g_source_remove (watch_id);
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (pipeline);
event = gst_event_new_step (format, amount, rate, flush, FALSE);
res = send_event (event);
+
+ if (!res) {
+ g_print ("Sending step event failed\n");
+ }
}
static void
g_print ("error reading joystick, read %u bytes of %u\n",
(guint) bytes_read, (guint) sizeof (struct js_event));
return TRUE;
+ } else if (result != G_IO_STATUS_NORMAL) {
+ g_print ("reading from joystick returned status %d", result);
}
switch (js->type & ~JS_EVENT_INIT) {
event = gst_event_new_step (format, amount, rate, flush, FALSE);
res = send_event (event);
+
+ if (!res) {
+ g_print ("Sending step event failed\n");
+ }
}
static void