GST_START_TEST (test_simple_pipeline)
{
- GstElement *pipe, *mq;
+ GstElement *pipe;
GstElement *inputs[1];
GstElement *outputs[1];
GstMessage *msg;
outputs[0] = gst_element_factory_make ("fakesink", NULL);
fail_unless (outputs[0] != NULL, "failed to create 'fakesink' element");
- mq = setup_multiqueue (pipe, inputs, outputs, 1);
+ setup_multiqueue (pipe, inputs, outputs, 1);
gst_element_set_state (pipe, GST_STATE_PLAYING);
GST_START_TEST (test_simple_shutdown_while_running)
{
- GstElement *pipe, *mq;
+ GstElement *pipe;
GstElement *inputs[1];
GstElement *outputs[1];
GstMessage *msg;
outputs[0] = gst_element_factory_make ("fakesink", NULL);
fail_unless (outputs[0] != NULL, "failed to create 'fakesink' element");
- mq = setup_multiqueue (pipe, inputs, outputs, 1);
+ setup_multiqueue (pipe, inputs, outputs, 1);
gst_element_set_state (pipe, GST_STATE_PAUSED);
GST_START_TEST (test_simple_pipeline)
{
- GstElement *pipe, *queue2, *input, *output;
+ GstElement *pipe, *input, *output;
GstMessage *msg;
pipe = gst_pipeline_new ("pipeline");
output = gst_element_factory_make ("fakesink", NULL);
fail_unless (output != NULL, "failed to create 'fakesink' element");
- queue2 = setup_queue2 (pipe, input, output);
+ setup_queue2 (pipe, input, output);
gst_element_set_state (pipe, GST_STATE_PLAYING);
};
guint i;
GValue v = { 0, };
- gboolean ret = TRUE;
g_value_init (&v, G_TYPE_STRING);
for (i = 0; i < G_N_ELEMENTS (tests); i++) {
"\nwanted: %s\ngot : %s", tests[i].to, g_value_get_string (&v));
} else {
fail_if (tests[i].to != NULL, "failed, but wanted: %s", tests[i].to);
- ret = FALSE;
}
}
g_value_unset (&v);
static void
gst_test_trans_class_init (GstTestTransClass * klass)
{
- GObjectClass *gobject_class;
GstBaseTransformClass *trans_class;
- gobject_class = (GObjectClass *) klass;
trans_class = (GstBaseTransformClass *) klass;
trans_class->passthrough_on_same_caps = klass_passthrough_on_same_caps;