From 724efdb95d255afc891043c10c9cf8f796e188be Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 26 Sep 2007 15:14:37 +0000 Subject: [PATCH] tests/examples/snapshot/snapshot.c: Print error when pipeline failed to construct. Original commit message from CVS: * tests/examples/snapshot/snapshot.c: (main): Print error when pipeline failed to construct. --- ChangeLog | 5 +++++ tests/examples/snapshot/snapshot.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c5f0921d71..2a451f53f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-26 Wim Taymans + + * tests/examples/snapshot/snapshot.c: (main): + Print error when pipeline failed to construct. + 2007-09-25 Tim-Philipp Müller * configure.ac: diff --git a/tests/examples/snapshot/snapshot.c b/tests/examples/snapshot/snapshot.c index 67d5c52aee..dc802ebae7 100644 --- a/tests/examples/snapshot/snapshot.c +++ b/tests/examples/snapshot/snapshot.c @@ -49,7 +49,12 @@ main (int argc, char *argv[]) g_strdup_printf ("uridecodebin uri=%s ! ffmpegcolorspace ! videoscale ! " " appsink name=sink caps=\"" CAPS "\"", argv[1]); pipeline = gst_parse_launch (descr, &error); - g_assert (error == NULL); + + if (error != NULL) { + g_print ("could not construct pipeline: %s", error->message); + g_error_free (error); + exit (-1); + } /* get sink */ sink = gst_bin_get_by_name (GST_BIN (pipeline), "sink");