diff options
author | Mathieu Duponchelle <mduponchelle1@gmail.com> | 2013-10-16 16:33:11 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-10-16 15:35:10 +0100 |
commit | e035edc0fd27b2ae7f08742d820f8fc22c7023a2 (patch) | |
tree | a32646d4741123bdc7de9e9c8568acc704683426 /tests | |
parent | d2931996112ad9850ff57019c1b1d779b52fa1c3 (diff) | |
download | farstream-e035edc0fd27b2ae7f08742d820f8fc22c7023a2.tar.gz |
tests/rtp/sendcodecs: pass a GError to parse_launch.
Otherwise for some reason launch_full returns a pipeline
even when an element is missing, despite the FATAL_ERRORS flag.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/rtp/sendcodecs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check/rtp/sendcodecs.c b/tests/check/rtp/sendcodecs.c index bd1a8d60..29166d65 100644 --- a/tests/check/rtp/sendcodecs.c +++ b/tests/check/rtp/sendcodecs.c @@ -466,12 +466,14 @@ build_dtmf_sound_recv_pipeline (gint *port) GstElement *pipeline; GstElement *src; GstBus *bus; + GError *error = NULL; pipeline = gst_parse_launch_full ( "udpsrc name=src caps=\"application/x-rtp, payload=0\" !" " rtppcmudepay ! mulawdec ! dtmfdetect ! fakesink sync=0", NULL, - GST_PARSE_FLAG_FATAL_ERRORS, NULL); + GST_PARSE_FLAG_FATAL_ERRORS, &error); fail_if (pipeline == NULL); + fail_if (error != NULL); bus = gst_element_get_bus (pipeline); gst_bus_add_watch (bus, dtmf_bus_watch, NULL); |