mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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.
This commit is contained in:
parent
4d49d36fda
commit
84721705b7
4 changed files with 26 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2004-02-14 Julien MOUTTE <julien@moutte.net>
|
2004-02-14 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* gst-libs/gst/play/play.c: (gst_play_connect_visualization): Disable
|
* gst-libs/gst/play/play.c: (gst_play_connect_visualization): Disable
|
||||||
|
|
|
@ -77,6 +77,7 @@ got_video_size (GstPlay *play, gint width, gint height)
|
||||||
static void
|
static void
|
||||||
got_eos (GstPlay *play)
|
got_eos (GstPlay *play)
|
||||||
{
|
{
|
||||||
|
g_print ("End Of Stream\n");
|
||||||
g_main_loop_quit (loop);
|
g_main_loop_quit (loop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,10 +158,12 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
|
|
||||||
|
g_print ("setting pipeline to ready\n");
|
||||||
|
|
||||||
gst_element_set_state (GST_ELEMENT (play), GST_STATE_READY);
|
gst_element_set_state (GST_ELEMENT (play), GST_STATE_READY);
|
||||||
|
|
||||||
/* unref */
|
/* unref
|
||||||
gst_object_unref (GST_OBJECT (play));
|
gst_object_unref (GST_OBJECT (play)); */
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -457,6 +457,16 @@ gst_play_state_change (GstElement *element, GstElementState old,
|
||||||
(GSourceFunc) gst_play_get_length_callback,
|
(GSourceFunc) gst_play_get_length_callback,
|
||||||
play);
|
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)
|
if (GST_ELEMENT_CLASS (parent_class)->state_change)
|
||||||
GST_ELEMENT_CLASS (parent_class)->state_change (element, old, state);
|
GST_ELEMENT_CLASS (parent_class)->state_change (element, old, state);
|
||||||
|
|
|
@ -260,6 +260,8 @@ gst_riff_read_seek (GstRiffRead *riff,
|
||||||
break;
|
break;
|
||||||
} else if (GST_EVENT_TYPE (event) != GST_EVENT_DISCONTINUOUS) {
|
} else if (GST_EVENT_TYPE (event) != GST_EVENT_DISCONTINUOUS) {
|
||||||
gst_pad_event_default (riff->sinkpad, event);
|
gst_pad_event_default (riff->sinkpad, event);
|
||||||
|
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS)
|
||||||
|
return NULL;
|
||||||
event = NULL;
|
event = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue