summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-01 15:53:04 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-01 15:53:04 +0000
commite2665a52a07c4b7b88785a33a3cd3e52f0a9cc0a (patch)
tree860a90711853bde2568157573cc781207b48f065 /examples
parent80fe257c59f2c9eeb60a38cff1bc452304fa82f7 (diff)
downloadgst-plugins-bad-e2665a52a07c4b7b88785a33a3cd3e52f0a9cc0a.tar.gz
gst-plugins-bad-e2665a52a07c4b7b88785a33a3cd3e52f0a9cc0a.tar.bz2
gst-plugins-bad-e2665a52a07c4b7b88785a33a3cd3e52f0a9cc0a.zip
add error handler fix mixmatrix plugin filename
Original commit message from CVS: add error handler fix mixmatrix plugin filename
Diffstat (limited to 'examples')
-rw-r--r--examples/gstplay/player.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c
index dee721f9..8aabe69d 100644
--- a/examples/gstplay/player.c
+++ b/examples/gstplay/player.c
@@ -58,7 +58,7 @@ got_found_tag (GstPlay *play,GstElement *source, GstTagList *tag_list)
static void
got_time_tick (GstPlay *play, gint64 time_nanos)
{
- g_print ("time tick %llu\n", time_nanos);
+ g_print ("time tick %f\n", time_nanos / (float) GST_SECOND);
}
static void
@@ -147,6 +147,8 @@ main (int argc, char *argv[])
G_CALLBACK (got_video_size), NULL);
g_signal_connect (G_OBJECT (play), "found_tag",
G_CALLBACK (got_found_tag), NULL);
+ g_signal_connect (G_OBJECT (play), "error",
+ G_CALLBACK (gst_element_default_error), NULL);
g_signal_connect (G_OBJECT (play), "eos",
G_CALLBACK (got_eos), NULL);