diff options
Diffstat (limited to 'tests/check/generic/libavcodec-locking.c')
-rw-r--r-- | tests/check/generic/libavcodec-locking.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/check/generic/libavcodec-locking.c b/tests/check/generic/libavcodec-locking.c index 88d321a..4e484f8 100644 --- a/tests/check/generic/libavcodec-locking.c +++ b/tests/check/generic/libavcodec-locking.c @@ -36,7 +36,7 @@ setup_pipeline (const gchar * pipe_descr) return pipeline; } -/* +/* * run_pipeline: * @pipe: the pipeline to run * @desc: the description for use in messages @@ -101,22 +101,21 @@ GST_START_TEST (test_libavcodec_locks) for (i=0; i<NUM_SINKS; i++) sink[i] = g_strdup_printf (" t.src%d ! queue ! ffenc_mpeg4 ! ffdec_mpeg4 ! fakesink sync=true", i); - + sink [NUM_SINKS] = NULL; - + sinks = g_strjoinv (" ", sink); - + s = g_strdup_printf ("videotestsrc ! video/x-raw-yuv,format=(fourcc)I420,width=320,height=240,framerate=(fraction)10/1 ! tee name=t %s", sinks); - + run_pipeline (setup_pipeline (s), s, GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN); - g_free (s); for (i=0; i<NUM_SINKS; i++) g_free (sink[i]); - + g_free (sinks); } GST_END_TEST Suite * @@ -138,6 +137,7 @@ simple_launch_lines_suite (void) suite_add_tcase (s, tc_chain); +#ifndef GST_DISABLE_PARSE /* only run this if we haven't been configured with --disable-encoders */ if (gst_default_registry_check_feature_version ("ffenc_mpeg4", GST_VERSION_MAJOR, GST_VERSION_MINOR, 0)) { @@ -145,7 +145,8 @@ simple_launch_lines_suite (void) } else { g_print ("******* Skipping libavcodec_locks test, no encoder available\n"); } - +#endif + return s; } |