mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
This commit is contained in:
parent
ab88f15674
commit
b5609f651e
2 changed files with 5 additions and 5 deletions
|
@ -1509,7 +1509,7 @@ read_failed:
|
|||
GST_OBJECT_LOCK (demux);
|
||||
/* pause appropriatly based on if we are flushing or not */
|
||||
if (demux->flushing)
|
||||
ret = GST_FLOW_WRONG_STATE;
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
else if (gst_ffmpegdemux_has_outputted (demux)
|
||||
|| gst_ffmpegdemux_is_eos (demux)) {
|
||||
GST_DEBUG_OBJECT (demux, "We are EOS");
|
||||
|
@ -1562,7 +1562,7 @@ gst_ffmpegdemux_sink_event (GstPad * sinkpad, GstObject * parent,
|
|||
|
||||
/* now unblock the chain function */
|
||||
GST_FFMPEG_PIPE_MUTEX_LOCK (ffpipe);
|
||||
ffpipe->srcresult = GST_FLOW_WRONG_STATE;
|
||||
ffpipe->srcresult = GST_FLOW_FLUSHING;
|
||||
GST_FFMPEG_PIPE_SIGNAL (ffpipe);
|
||||
GST_FFMPEG_PIPE_MUTEX_UNLOCK (ffpipe);
|
||||
|
||||
|
@ -1680,7 +1680,7 @@ ignore:
|
|||
|
||||
if (buffer)
|
||||
gst_buffer_unref (buffer);
|
||||
return GST_FLOW_WRONG_STATE;
|
||||
return GST_FLOW_FLUSHING;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1742,7 +1742,7 @@ gst_ffmpegdemux_sink_activate_push (GstPad * sinkpad, GstObject * parent,
|
|||
|
||||
/* release chain and loop */
|
||||
GST_FFMPEG_PIPE_MUTEX_LOCK (ffpipe);
|
||||
demux->ffpipe.srcresult = GST_FLOW_WRONG_STATE;
|
||||
demux->ffpipe.srcresult = GST_FLOW_FLUSHING;
|
||||
/* end streaming by making ffmpeg believe eos */
|
||||
demux->ffpipe.eos = TRUE;
|
||||
GST_FFMPEG_PIPE_SIGNAL (ffpipe);
|
||||
|
|
|
@ -118,7 +118,7 @@ gst_ffmpegdata_peek (URLContext * h, unsigned char *buf, int size)
|
|||
case GST_FLOW_EOS:
|
||||
total = 0;
|
||||
break;
|
||||
case GST_FLOW_WRONG_STATE:
|
||||
case GST_FLOW_FLUSHING:
|
||||
total = -1;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue