mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
tests: fix unused-but-set-variable warnings with gcc 4.6
https://bugzilla.gnome.org/show_bug.cgi?id=647294
This commit is contained in:
parent
be59789664
commit
05dce4e2ac
5 changed files with 14 additions and 3 deletions
|
@ -27,7 +27,7 @@ static gboolean
|
||||||
remove_range_foreach (GQuark field_id, const GValue * value, GstStructure * st)
|
remove_range_foreach (GQuark field_id, const GValue * value, GstStructure * st)
|
||||||
{
|
{
|
||||||
GType ftype = G_VALUE_TYPE (value);
|
GType ftype = G_VALUE_TYPE (value);
|
||||||
const gchar *fname;
|
/* const gchar *fname; */
|
||||||
|
|
||||||
if (ftype == GST_TYPE_INT_RANGE || ftype == GST_TYPE_DOUBLE_RANGE ||
|
if (ftype == GST_TYPE_INT_RANGE || ftype == GST_TYPE_DOUBLE_RANGE ||
|
||||||
ftype == GST_TYPE_FRACTION_RANGE) {
|
ftype == GST_TYPE_FRACTION_RANGE) {
|
||||||
|
@ -35,8 +35,7 @@ remove_range_foreach (GQuark field_id, const GValue * value, GstStructure * st)
|
||||||
return FALSE;
|
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") || */
|
/* if (strstr (fname, "framerate") || strstr (fname, "pixel-aspect-ratio") || */
|
||||||
/* strstr (fname, "rate")) { */
|
/* strstr (fname, "rate")) { */
|
||||||
/* gst_structure_remove_field (st, g_quark_to_string (field_id)); */
|
/* gst_structure_remove_field (st, g_quark_to_string (field_id)); */
|
||||||
|
|
|
@ -119,6 +119,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
gtk_main ();
|
gtk_main ();
|
||||||
|
|
||||||
|
g_source_remove (watch_id);
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
|
|
||||||
|
|
|
@ -156,6 +156,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
|
|
||||||
|
g_source_remove (watch_id);
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
|
|
||||||
|
|
|
@ -2112,6 +2112,10 @@ step_cb (GtkButton * button, gpointer data)
|
||||||
event = gst_event_new_step (format, amount, rate, flush, FALSE);
|
event = gst_event_new_step (format, amount, rate, flush, FALSE);
|
||||||
|
|
||||||
res = send_event (event);
|
res = send_event (event);
|
||||||
|
|
||||||
|
if (!res) {
|
||||||
|
g_print ("Sending step event failed\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -2651,6 +2655,8 @@ read_joystick (GIOChannel * source, GIOCondition condition, gpointer user_data)
|
||||||
g_print ("error reading joystick, read %u bytes of %u\n",
|
g_print ("error reading joystick, read %u bytes of %u\n",
|
||||||
(guint) bytes_read, (guint) sizeof (struct js_event));
|
(guint) bytes_read, (guint) sizeof (struct js_event));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
} else if (result != G_IO_STATUS_NORMAL) {
|
||||||
|
g_print ("reading from joystick returned status %d", result);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (js->type & ~JS_EVENT_INIT) {
|
switch (js->type & ~JS_EVENT_INIT) {
|
||||||
|
|
|
@ -2102,6 +2102,10 @@ step_cb (GtkButton * button, gpointer data)
|
||||||
event = gst_event_new_step (format, amount, rate, flush, FALSE);
|
event = gst_event_new_step (format, amount, rate, flush, FALSE);
|
||||||
|
|
||||||
res = send_event (event);
|
res = send_event (event);
|
||||||
|
|
||||||
|
if (!res) {
|
||||||
|
g_print ("Sending step event failed\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue