mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
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.
This commit is contained in:
parent
3263d790f9
commit
724efdb95d
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-09-26 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* tests/examples/snapshot/snapshot.c: (main):
|
||||
Print error when pipeline failed to construct.
|
||||
|
||||
2007-09-25 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue