mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tests: rename playbin2 to playbin and adding some debug info
This commit is contained in:
parent
07a888f174
commit
564eee8cd6
1 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@ bus_call (GstBus * bus, GstMessage * msg, gpointer data)
|
||||||
GError *err;
|
GError *err;
|
||||||
|
|
||||||
gst_message_parse_error (msg, &err, &debug);
|
gst_message_parse_error (msg, &err, &debug);
|
||||||
|
g_printerr ("Debugging info: %s\n", (debug) ? debug : "none");
|
||||||
g_free (debug);
|
g_free (debug);
|
||||||
|
|
||||||
g_print ("Error: %s\n", err->message);
|
g_print ("Error: %s\n", err->message);
|
||||||
|
@ -46,9 +47,9 @@ main (gint argc, gchar * argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
playbin = gst_element_factory_make ("playbin2", NULL);
|
playbin = gst_element_factory_make ("playbin", NULL);
|
||||||
if (!playbin) {
|
if (!playbin) {
|
||||||
g_print ("'playbin2' gstreamer plugin missing\n");
|
g_print ("'playbin' gstreamer plugin missing\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue