mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
matroska-demux: Don't handle seek until ready
https://bugzilla.gnome.org/show_bug.cgi?id=762542
This commit is contained in:
parent
1a3986d016
commit
a5691af319
1 changed files with 6 additions and 0 deletions
|
@ -1578,6 +1578,12 @@ gst_matroska_demux_element_send_event (GstElement * element, GstEvent * event)
|
||||||
g_return_val_if_fail (event != NULL, FALSE);
|
g_return_val_if_fail (event != NULL, FALSE);
|
||||||
|
|
||||||
if (GST_EVENT_TYPE (event) == GST_EVENT_SEEK) {
|
if (GST_EVENT_TYPE (event) == GST_EVENT_SEEK) {
|
||||||
|
/* no seeking until we are (safely) ready */
|
||||||
|
if (demux->common.state != GST_MATROSKA_READ_STATE_DATA) {
|
||||||
|
GST_DEBUG_OBJECT (demux, "not ready for seeking yet");
|
||||||
|
gst_event_unref (event);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
res = gst_matroska_demux_handle_seek_event (demux, NULL, event);
|
res = gst_matroska_demux_handle_seek_event (demux, NULL, event);
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (demux, "Unhandled event of type %s",
|
GST_WARNING_OBJECT (demux, "Unhandled event of type %s",
|
||||||
|
|
Loading…
Reference in a new issue