summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Duponchelle <mduponchelle1@gmail.com>2013-10-16 16:33:11 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-10-16 15:35:10 +0100
commite035edc0fd27b2ae7f08742d820f8fc22c7023a2 (patch)
treea32646d4741123bdc7de9e9c8568acc704683426 /tests
parentd2931996112ad9850ff57019c1b1d779b52fa1c3 (diff)
downloadfarstream-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.c4
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);