mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 17:14:23 +00:00
tests: remove newlines between variable decls (old gst-indent failure)
This commit is contained in:
parent
a513a7be75
commit
35232cd490
2 changed files with 0 additions and 32 deletions
|
@ -41,7 +41,6 @@ GST_END_TEST;
|
||||||
GST_START_TEST (test_request_pads)
|
GST_START_TEST (test_request_pads)
|
||||||
{
|
{
|
||||||
GstElement *interleave;
|
GstElement *interleave;
|
||||||
|
|
||||||
GstPad *pad1, *pad2;
|
GstPad *pad1, *pad2;
|
||||||
|
|
||||||
interleave = gst_element_factory_make ("interleave", NULL);
|
interleave = gst_element_factory_make ("interleave", NULL);
|
||||||
|
@ -67,13 +66,9 @@ GST_START_TEST (test_request_pads)
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
static GstPad **mysrcpads, *mysinkpad;
|
static GstPad **mysrcpads, *mysinkpad;
|
||||||
|
|
||||||
static GstBus *bus;
|
static GstBus *bus;
|
||||||
|
|
||||||
static GstElement *interleave;
|
static GstElement *interleave;
|
||||||
|
|
||||||
static gint have_data;
|
static gint have_data;
|
||||||
|
|
||||||
static gfloat input[2];
|
static gfloat input[2];
|
||||||
|
|
||||||
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
|
@ -103,7 +98,6 @@ static GstFlowReturn
|
||||||
interleave_chain_func (GstPad * pad, GstBuffer * buffer)
|
interleave_chain_func (GstPad * pad, GstBuffer * buffer)
|
||||||
{
|
{
|
||||||
gfloat *outdata;
|
gfloat *outdata;
|
||||||
|
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
fail_unless (GST_IS_BUFFER (buffer));
|
fail_unless (GST_IS_BUFFER (buffer));
|
||||||
|
@ -128,15 +122,10 @@ interleave_chain_func (GstPad * pad, GstBuffer * buffer)
|
||||||
GST_START_TEST (test_interleave_2ch)
|
GST_START_TEST (test_interleave_2ch)
|
||||||
{
|
{
|
||||||
GstElement *queue;
|
GstElement *queue;
|
||||||
|
|
||||||
GstPad *sink0, *sink1, *src, *tmp;
|
GstPad *sink0, *sink1, *src, *tmp;
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
GstBuffer *inbuf;
|
GstBuffer *inbuf;
|
||||||
|
|
||||||
gfloat *indata;
|
gfloat *indata;
|
||||||
|
|
||||||
mysrcpads = g_new0 (GstPad *, 2);
|
mysrcpads = g_new0 (GstPad *, 2);
|
||||||
|
@ -253,15 +242,10 @@ GST_END_TEST;
|
||||||
GST_START_TEST (test_interleave_2ch_1eos)
|
GST_START_TEST (test_interleave_2ch_1eos)
|
||||||
{
|
{
|
||||||
GstElement *queue;
|
GstElement *queue;
|
||||||
|
|
||||||
GstPad *sink0, *sink1, *src, *tmp;
|
GstPad *sink0, *sink1, *src, *tmp;
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
GstBuffer *inbuf;
|
GstBuffer *inbuf;
|
||||||
|
|
||||||
gfloat *indata;
|
gfloat *indata;
|
||||||
|
|
||||||
mysrcpads = g_new0 (GstPad *, 2);
|
mysrcpads = g_new0 (GstPad *, 2);
|
||||||
|
@ -468,9 +452,7 @@ sink_handoff_float32 (GstElement * element, GstBuffer * buffer, GstPad * pad,
|
||||||
GST_START_TEST (test_interleave_2ch_pipeline)
|
GST_START_TEST (test_interleave_2ch_pipeline)
|
||||||
{
|
{
|
||||||
GstElement *pipeline, *queue, *src1, *src2, *interleave, *sink;
|
GstElement *pipeline, *queue, *src1, *src2, *interleave, *sink;
|
||||||
|
|
||||||
GstPad *sinkpad0, *sinkpad1, *tmp, *tmp2;
|
GstPad *sinkpad0, *sinkpad1, *tmp, *tmp2;
|
||||||
|
|
||||||
GstMessage *msg;
|
GstMessage *msg;
|
||||||
|
|
||||||
have_data = 0;
|
have_data = 0;
|
||||||
|
@ -552,9 +534,7 @@ GST_END_TEST;
|
||||||
GST_START_TEST (test_interleave_2ch_pipeline_input_chanpos)
|
GST_START_TEST (test_interleave_2ch_pipeline_input_chanpos)
|
||||||
{
|
{
|
||||||
GstElement *pipeline, *queue, *src1, *src2, *interleave, *sink;
|
GstElement *pipeline, *queue, *src1, *src2, *interleave, *sink;
|
||||||
|
|
||||||
GstPad *sinkpad0, *sinkpad1, *tmp, *tmp2;
|
GstPad *sinkpad0, *sinkpad1, *tmp, *tmp2;
|
||||||
|
|
||||||
GstMessage *msg;
|
GstMessage *msg;
|
||||||
|
|
||||||
have_data = 0;
|
have_data = 0;
|
||||||
|
@ -637,11 +617,8 @@ GST_END_TEST;
|
||||||
GST_START_TEST (test_interleave_2ch_pipeline_custom_chanpos)
|
GST_START_TEST (test_interleave_2ch_pipeline_custom_chanpos)
|
||||||
{
|
{
|
||||||
GstElement *pipeline, *queue, *src1, *src2, *interleave, *sink;
|
GstElement *pipeline, *queue, *src1, *src2, *interleave, *sink;
|
||||||
|
|
||||||
GstPad *sinkpad0, *sinkpad1, *tmp, *tmp2;
|
GstPad *sinkpad0, *sinkpad1, *tmp, *tmp2;
|
||||||
|
|
||||||
GstMessage *msg;
|
GstMessage *msg;
|
||||||
|
|
||||||
GValueArray *arr;
|
GValueArray *arr;
|
||||||
GValue val = { 0, };
|
GValue val = { 0, };
|
||||||
|
|
||||||
|
@ -736,7 +713,6 @@ static Suite *
|
||||||
interleave_suite (void)
|
interleave_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("interleave");
|
Suite *s = suite_create ("interleave");
|
||||||
|
|
||||||
TCase *tc_chain = tcase_create ("general");
|
TCase *tc_chain = tcase_create ("general");
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
|
|
@ -32,7 +32,6 @@ bus_handler (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
case GST_MESSAGE_WARNING:
|
case GST_MESSAGE_WARNING:
|
||||||
case GST_MESSAGE_ERROR:{
|
case GST_MESSAGE_ERROR:{
|
||||||
GError *gerror;
|
GError *gerror;
|
||||||
|
|
||||||
gchar *debug;
|
gchar *debug;
|
||||||
|
|
||||||
gst_message_parse_error (message, &gerror, &debug);
|
gst_message_parse_error (message, &gerror, &debug);
|
||||||
|
@ -90,15 +89,11 @@ fakesink_handoff (GstElement * object, GstBuffer * buffer, GstPad * pad,
|
||||||
GST_START_TEST (test_encode_decode)
|
GST_START_TEST (test_encode_decode)
|
||||||
{
|
{
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
|
|
||||||
GstElement *audiotestsrc, *identity1, *wavpackenc, *identity2, *wavpackdec,
|
GstElement *audiotestsrc, *identity1, *wavpackenc, *identity2, *wavpackdec,
|
||||||
*identity3, *fakesink;
|
*identity3, *fakesink;
|
||||||
GstAdapter *srcadapter, *sinkadapter;
|
GstAdapter *srcadapter, *sinkadapter;
|
||||||
|
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
|
|
||||||
GMainLoop *loop;
|
GMainLoop *loop;
|
||||||
|
|
||||||
GstBuffer *in, *out;
|
GstBuffer *in, *out;
|
||||||
|
|
||||||
srcadapter = gst_adapter_new ();
|
srcadapter = gst_adapter_new ();
|
||||||
|
@ -192,7 +187,6 @@ static Suite *
|
||||||
wavpack_suite (void)
|
wavpack_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("Wavpack");
|
Suite *s = suite_create ("Wavpack");
|
||||||
|
|
||||||
TCase *tc_chain = tcase_create ("linear");
|
TCase *tc_chain = tcase_create ("linear");
|
||||||
|
|
||||||
/* time out after 60s, not the default 3 */
|
/* time out after 60s, not the default 3 */
|
||||||
|
@ -208,9 +202,7 @@ int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = wavpack_suite ();
|
Suite *s = wavpack_suite ();
|
||||||
|
|
||||||
SRunner *sr = srunner_create (s);
|
SRunner *sr = srunner_create (s);
|
||||||
|
|
||||||
gst_check_init (&argc, &argv);
|
gst_check_init (&argc, &argv);
|
||||||
|
|
Loading…
Reference in a new issue