summaryrefslogtreecommitdiffstats
path: root/examples/gstplay
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2004-02-15 17:41:28 +0000
committerJulien Moutte <julien@moutte.net>2004-02-15 17:41:28 +0000
commit84721705b7b6271e787ca3af2a0c9bd4324a0ce3 (patch)
tree3227ccfbda9c7ce9864e8c17db1ba110eab26386 /examples/gstplay
parent4d49d36fdabb948c08a5a3f5ca7abccf6343d74b (diff)
downloadgst-plugins-bad-84721705b7b6271e787ca3af2a0c9bd4324a0ce3.tar.gz
gst-plugins-bad-84721705b7b6271e787ca3af2a0c9bd4324a0ce3.tar.bz2
gst-plugins-bad-84721705b7b6271e787ca3af2a0c9bd4324a0ce3.zip
examples/gstplay/player.c: Adding some output for debugging.
Original commit message from CVS: 2004-02-15 Julien MOUTTE <julien@moutte.net> * 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.
Diffstat (limited to 'examples/gstplay')
-rw-r--r--examples/gstplay/player.c7
1 files changed, 5 insertions, 2 deletions
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);
}