summaryrefslogtreecommitdiffstats
path: root/examples/gstplay
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2003-12-21 22:11:46 +0000
committerJulien Moutte <julien@moutte.net>2003-12-21 22:11:46 +0000
commit1835d5eb9c76f5c8eab4fe6ac8fca3bd0f846564 (patch)
treec003f79c828cbba2045ba43d3382dd9077c88aaf /examples/gstplay
parentca200c8a757d4d4e59425f0ff8add0770e1427e4 (diff)
downloadgst-plugins-bad-1835d5eb9c76f5c8eab4fe6ac8fca3bd0f846564.tar.gz
gst-plugins-bad-1835d5eb9c76f5c8eab4fe6ac8fca3bd0f846564.tar.bz2
gst-plugins-bad-1835d5eb9c76f5c8eab4fe6ac8fca3bd0f846564.zip
examples/gstplay/player.c: using g_print instead of g_message.
Original commit message from CVS: * examples/gstplay/player.c: (got_time_tick), (got_stream_length), (got_video_size), (main): using g_print instead of g_message. * gst-libs/gst/play/gstplay.c: (gst_play_pipeline_setup): Fixing EOS signal which was not emitted because of "switch" element added to the bin but not connected. (Removing from the bin temporarily)
Diffstat (limited to 'examples/gstplay')
-rw-r--r--examples/gstplay/player.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c
index ef58e326..76a735fc 100644
--- a/examples/gstplay/player.c
+++ b/examples/gstplay/player.c
@@ -58,20 +58,20 @@ got_found_tag (GstPlay *play,GstElement *source, GstTagList *tag_list)
static void
got_time_tick (GstPlay *play, gint64 time_nanos)
{
- g_message ("time tick %llu", time_nanos);
+ g_print ("time tick %llu", time_nanos);
}
static void
got_stream_length (GstPlay *play, gint64 length_nanos)
{
- g_message ("got length %llu", length_nanos);
+ g_print ("got length %llu", length_nanos);
length = length_nanos;
}
static void
got_video_size (GstPlay *play, gint width, gint height)
{
- g_message ("got video size %d, %d", width, height);
+ g_print ("got video size %d, %d", width, height);
}
static void
@@ -128,6 +128,7 @@ main (int argc, char *argv[])
/* Setting location we want to play */
gst_play_set_location (play, argv[1]);
+ /* Uncomment that line to get an XML dump of the pipeline */
/* gst_xml_write_file (GST_ELEMENT (play), stdout); */
g_signal_connect (G_OBJECT (play), "time_tick",