mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-29 23:32:33 +00:00
tools, tests: fix some unused-but-set-variable compiler warnings
This commit is contained in:
parent
20d1ee87cb
commit
9e20c4eadc
3 changed files with 1 additions and 12 deletions
|
@ -464,7 +464,6 @@ GST_START_TEST (test_push_buffer_list_compat)
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstBufferList *list;
|
GstBufferList *list;
|
||||||
GstBuffer *buffer;
|
GstBuffer *buffer;
|
||||||
guint len;
|
|
||||||
|
|
||||||
/* setup */
|
/* setup */
|
||||||
sink = gst_pad_new ("sink", GST_PAD_SINK);
|
sink = gst_pad_new ("sink", GST_PAD_SINK);
|
||||||
|
@ -492,8 +491,6 @@ GST_START_TEST (test_push_buffer_list_compat)
|
||||||
|
|
||||||
/* test */
|
/* test */
|
||||||
/* adding to a buffer list will drop the ref to the buffer */
|
/* adding to a buffer list will drop the ref to the buffer */
|
||||||
len = gst_buffer_list_len (list);
|
|
||||||
|
|
||||||
gst_buffer_list_add (list, buffer_from_string ("ListGroup"));
|
gst_buffer_list_add (list, buffer_from_string ("ListGroup"));
|
||||||
gst_buffer_list_add (list, buffer_from_string ("AnotherListGroup"));
|
gst_buffer_list_add (list, buffer_from_string ("AnotherListGroup"));
|
||||||
|
|
||||||
|
@ -579,7 +576,6 @@ GST_START_TEST (test_push_negotiation)
|
||||||
GstPadTemplate *src_template;
|
GstPadTemplate *src_template;
|
||||||
GstPadTemplate *sink_template;
|
GstPadTemplate *sink_template;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstBuffer *buffer;
|
|
||||||
|
|
||||||
/* setup */
|
/* setup */
|
||||||
src_template = gst_pad_template_new ("src", GST_PAD_SRC,
|
src_template = gst_pad_template_new ("src", GST_PAD_SRC,
|
||||||
|
@ -599,8 +595,6 @@ GST_START_TEST (test_push_negotiation)
|
||||||
plr = gst_pad_link (src, sink);
|
plr = gst_pad_link (src, sink);
|
||||||
fail_unless (GST_PAD_LINK_SUCCESSFUL (plr));
|
fail_unless (GST_PAD_LINK_SUCCESSFUL (plr));
|
||||||
|
|
||||||
buffer = gst_buffer_new ();
|
|
||||||
|
|
||||||
/* activate pads */
|
/* activate pads */
|
||||||
gst_pad_set_active (src, TRUE);
|
gst_pad_set_active (src, TRUE);
|
||||||
gst_pad_set_active (sink, TRUE);
|
gst_pad_set_active (sink, TRUE);
|
||||||
|
@ -850,13 +844,12 @@ GST_START_TEST (test_block_async_full_destroy_dispose)
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
/* 0 = unblocked, 1 = blocked, 2 = destroyed */
|
/* 0 = unblocked, 1 = blocked, 2 = destroyed */
|
||||||
gint state = 0;
|
gint state = 0;
|
||||||
gulong id;
|
|
||||||
|
|
||||||
pad = gst_pad_new ("src", GST_PAD_SRC);
|
pad = gst_pad_new ("src", GST_PAD_SRC);
|
||||||
fail_unless (pad != NULL);
|
fail_unless (pad != NULL);
|
||||||
gst_pad_set_active (pad, TRUE);
|
gst_pad_set_active (pad, TRUE);
|
||||||
|
|
||||||
id = gst_pad_add_probe (pad, GST_PROBE_TYPE_BLOCK, block_async_full_cb,
|
(void) gst_pad_add_probe (pad, GST_PROBE_TYPE_BLOCK, block_async_full_cb,
|
||||||
&state, block_async_full_destroy);
|
&state, block_async_full_destroy);
|
||||||
|
|
||||||
gst_pad_push (pad, gst_buffer_new ());
|
gst_pad_push (pad, gst_buffer_new ());
|
||||||
|
|
|
@ -689,10 +689,8 @@ print_element_flag_info (GstElement * element)
|
||||||
static void
|
static void
|
||||||
print_implementation_info (GstElement * element)
|
print_implementation_info (GstElement * element)
|
||||||
{
|
{
|
||||||
GstObjectClass *gstobject_class;
|
|
||||||
GstElementClass *gstelement_class;
|
GstElementClass *gstelement_class;
|
||||||
|
|
||||||
gstobject_class = GST_OBJECT_CLASS (G_OBJECT_GET_CLASS (element));
|
|
||||||
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||||
|
|
||||||
n_print ("\n");
|
n_print ("\n");
|
||||||
|
|
|
@ -449,7 +449,6 @@ static gint
|
||||||
print_element_info (GstElementFactory * factory)
|
print_element_info (GstElementFactory * factory)
|
||||||
{
|
{
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
GstObjectClass *gstobject_class;
|
|
||||||
GstElementClass *gstelement_class;
|
GstElementClass *gstelement_class;
|
||||||
GList *pads;
|
GList *pads;
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
|
@ -464,7 +463,6 @@ print_element_info (GstElementFactory * factory)
|
||||||
PUT_START_TAG (0, "element");
|
PUT_START_TAG (0, "element");
|
||||||
PUT_ESCAPED (1, "name", GST_OBJECT_NAME (factory));
|
PUT_ESCAPED (1, "name", GST_OBJECT_NAME (factory));
|
||||||
|
|
||||||
gstobject_class = GST_OBJECT_CLASS (G_OBJECT_GET_CLASS (element));
|
|
||||||
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
||||||
|
|
||||||
PUT_START_TAG (1, "details");
|
PUT_START_TAG (1, "details");
|
||||||
|
|
Loading…
Reference in a new issue