mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
oggdemux: Return FLUSHING if pad if flushing
If the initial seek fails because the pad is flushing, then return GST_FLOW_FLUSHING instead of an error.
This commit is contained in:
parent
1273848bf5
commit
315857dce6
1 changed files with 12 additions and 3 deletions
|
@ -4778,9 +4778,18 @@ chain_read_failed:
|
|||
}
|
||||
seek_failed:
|
||||
{
|
||||
GST_ELEMENT_ERROR (ogg, STREAM, DEMUX, (NULL),
|
||||
("failed to start demuxing ogg"));
|
||||
ret = GST_FLOW_ERROR;
|
||||
gboolean flushing;
|
||||
|
||||
GST_OBJECT_LOCK (pad);
|
||||
flushing = GST_PAD_IS_FLUSHING (pad);
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
if (flushing) {
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
} else {
|
||||
GST_ELEMENT_ERROR (ogg, STREAM, DEMUX, (NULL),
|
||||
("failed to start demuxing ogg"));
|
||||
ret = GST_FLOW_ERROR;
|
||||
}
|
||||
goto pause;
|
||||
}
|
||||
pause:
|
||||
|
|
Loading…
Reference in a new issue