examples: camerabin2: Print more info

Add some printing for error/eos cases.
This commit is contained in:
Thiago Santos 2010-12-03 12:11:59 -03:00
parent 122a7bd556
commit 397f7fcceb

View file

@ -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: