mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
Fix some more variable-set-but-not-used compiler warnings
This commit is contained in:
parent
e8d5e476ef
commit
7e49dad23b
4 changed files with 5 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -49,3 +49,4 @@ gst*orc.h
|
||||||
/tests/check/orc
|
/tests/check/orc
|
||||||
/tests/examples/shapewipe/shapewipe-example
|
/tests/examples/shapewipe/shapewipe-example
|
||||||
/tests/examples/jack/jack_client
|
/tests/examples/jack/jack_client
|
||||||
|
/tests/examples/opencv/gstmotioncells_dynamic_test
|
||||||
|
|
|
@ -219,10 +219,8 @@ static void
|
||||||
gst_motion_cells_class_init (GstMotioncellsClass * klass)
|
gst_motion_cells_class_init (GstMotioncellsClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_motion_cells_finalize);
|
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_motion_cells_finalize);
|
||||||
|
|
|
@ -89,7 +89,6 @@ gst_element_print_properties (GstElement * element)
|
||||||
GParamSpec **property_specs;
|
GParamSpec **property_specs;
|
||||||
guint num_properties, i;
|
guint num_properties, i;
|
||||||
gboolean readable;
|
gboolean readable;
|
||||||
gboolean first_flag;
|
|
||||||
|
|
||||||
|
|
||||||
g_return_if_fail (element != NULL);
|
g_return_if_fail (element != NULL);
|
||||||
|
@ -108,7 +107,6 @@ gst_element_print_properties (GstElement * element)
|
||||||
GParamSpec *param = property_specs[i];
|
GParamSpec *param = property_specs[i];
|
||||||
|
|
||||||
readable = FALSE;
|
readable = FALSE;
|
||||||
first_flag = TRUE;
|
|
||||||
|
|
||||||
g_value_init (&value, param->value_type);
|
g_value_init (&value, param->value_type);
|
||||||
|
|
||||||
|
|
|
@ -206,8 +206,12 @@ main (int argc, char *argv[])
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
found_property = FALSE;
|
found_property = FALSE;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
ret = scanf ("%19s %99s", property, prop_value);
|
ret = scanf ("%19s %99s", property, prop_value);
|
||||||
|
|
||||||
|
if (ret < 1)
|
||||||
|
g_printerr ("Error parsing command.\n");
|
||||||
|
|
||||||
if ((g_strcmp0 (property, "q") == 0) || (g_strcmp0 (prop_value, "q") == 0))
|
if ((g_strcmp0 (property, "q") == 0) || (g_strcmp0 (prop_value, "q") == 0))
|
||||||
break;
|
break;
|
||||||
printf ("property: %s -> value: %s \n", property, prop_value);
|
printf ("property: %s -> value: %s \n", property, prop_value);
|
||||||
|
|
Loading…
Reference in a new issue