From e2ae8929b8efde3b3bafdfe12df9a5544e0be627 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Sun, 15 Feb 2004 17:41:28 +0000 Subject: examples/gstplay/player.c: Adding some output for debugging. Original commit message from CVS: 2004-02-15 Julien MOUTTE * examples/gstplay/player.c: (got_eos), (main): Adding some output for debugging. * gst-libs/gst/play/play.c: (gst_play_state_change): Stop our timeouts if we go to any state different from PLAYING. * gst-libs/gst/riff/riff-read.c: (gst_riff_read_seek): Fix some more EOS bugs in riff lib. --- ChangeLog | 9 +++++++++ examples/gstplay/player.c | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 243622ef..9e88dce3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-02-15 Julien MOUTTE + + * examples/gstplay/player.c: (got_eos), (main): Adding some + output for debugging. + * gst-libs/gst/play/play.c: (gst_play_state_change): Stop our + timeouts if we go to any state different from PLAYING. + * gst-libs/gst/riff/riff-read.c: (gst_riff_read_seek): Fix some + more EOS bugs in riff lib. + 2004-02-14 Julien MOUTTE * gst-libs/gst/play/play.c: (gst_play_connect_visualization): Disable diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c index 3c58c022..dee721f9 100644 --- a/examples/gstplay/player.c +++ b/examples/gstplay/player.c @@ -77,6 +77,7 @@ got_video_size (GstPlay *play, gint width, gint height) static void got_eos (GstPlay *play) { + g_print ("End Of Stream\n"); g_main_loop_quit (loop); } @@ -157,10 +158,12 @@ main (int argc, char *argv[]) g_main_loop_run (loop); + g_print ("setting pipeline to ready\n"); + gst_element_set_state (GST_ELEMENT (play), GST_STATE_READY); - /* unref */ - gst_object_unref (GST_OBJECT (play)); + /* unref + gst_object_unref (GST_OBJECT (play)); */ exit (0); } -- cgit