From 84721705b7b6271e787ca3af2a0c9bd4324a0ce3 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. --- gst-libs/gst/play/play.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gst-libs/gst/play') diff --git a/gst-libs/gst/play/play.c b/gst-libs/gst/play/play.c index 0fac17bf..dfa73fd9 100644 --- a/gst-libs/gst/play/play.c +++ b/gst-libs/gst/play/play.c @@ -457,6 +457,16 @@ gst_play_state_change (GstElement *element, GstElementState old, (GSourceFunc) gst_play_get_length_callback, play); } + else { + if (play->priv->tick_id) { + g_source_remove (play->priv->tick_id); + play->priv->tick_id = 0; + } + if (play->priv->length_id) { + g_source_remove (play->priv->length_id); + play->priv->length_id = 0; + } + } if (GST_ELEMENT_CLASS (parent_class)->state_change) GST_ELEMENT_CLASS (parent_class)->state_change (element, old, state); -- cgit v1.2.1