mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
validate/media-info: silence unsed variable warning
Fixes: ../validate/gst/validate/gst-validate-media-info.c:714:28: error: variable 'total_sink_count' set but not used [-Werror,-Wunused-but-set-variable] guint id, ncounters = 0, total_sink_count = 0; ^ Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2046>
This commit is contained in:
parent
67e364b34d
commit
8b82463b01
1 changed files with 6 additions and 1 deletions
|
@ -711,7 +711,10 @@ check_and_remove_input_selector_counters (GstElement * element,
|
||||||
gboolean done = FALSE;
|
gboolean done = FALSE;
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
GValue value = { 0, };
|
GValue value = { 0, };
|
||||||
guint id, ncounters = 0, total_sink_count = 0;
|
guint id, ncounters = 0;
|
||||||
|
#if 0
|
||||||
|
guint total_sink_count = 0;
|
||||||
|
#endif
|
||||||
BufferCountData *bcd, **bcds =
|
BufferCountData *bcd, **bcds =
|
||||||
g_malloc0 (sizeof (BufferCountData *) * element->numpads);
|
g_malloc0 (sizeof (BufferCountData *) * element->numpads);
|
||||||
gboolean ret = TRUE;
|
gboolean ret = TRUE;
|
||||||
|
@ -725,7 +728,9 @@ check_and_remove_input_selector_counters (GstElement * element,
|
||||||
bcd = g_object_get_data (G_OBJECT (pad), "buffer-count-data");
|
bcd = g_object_get_data (G_OBJECT (pad), "buffer-count-data");
|
||||||
if (GST_PAD_IS_SINK (pad)) {
|
if (GST_PAD_IS_SINK (pad)) {
|
||||||
bcds[++ncounters] = bcd;
|
bcds[++ncounters] = bcd;
|
||||||
|
#if 0
|
||||||
total_sink_count += bcd->counter;
|
total_sink_count += bcd->counter;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
bcds[0] = bcd;
|
bcds[0] = bcd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue