mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
examples: camerabin2: Print more info
Add some printing for error/eos cases.
This commit is contained in:
parent
122a7bd556
commit
397f7fcceb
1 changed files with 9 additions and 2 deletions
|
@ -120,13 +120,20 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data)
|
|||
break;
|
||||
}
|
||||
case GST_MESSAGE_ERROR:{
|
||||
//print_error_message (message);
|
||||
//me_gst_cleanup_element ();
|
||||
GError *err = NULL;
|
||||
gchar *debug = NULL;
|
||||
|
||||
gst_message_parse_error (message, &err, &debug);
|
||||
g_print ("Error: %s : %s\n", err->message, debug);
|
||||
g_error_free (err);
|
||||
g_free (debug);
|
||||
|
||||
gtk_main_quit ();
|
||||
break;
|
||||
}
|
||||
case GST_MESSAGE_EOS:
|
||||
/* end-of-stream */
|
||||
g_print ("Eos\n");
|
||||
gtk_main_quit ();
|
||||
break;
|
||||
case GST_MESSAGE_ELEMENT:
|
||||
|
|
Loading…
Reference in a new issue