mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 01:54:11 +00:00
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
This commit is contained in:
parent
cb976a9ffa
commit
f731208bcd
3 changed files with 3 additions and 3 deletions
|
@ -246,7 +246,7 @@ gst_amrnbenc_handle_frame (GstAudioEncoder * enc, GstBuffer * buffer)
|
|||
|
||||
amrnbenc = GST_AMRNBENC (enc);
|
||||
|
||||
g_return_val_if_fail (amrnbenc->handle, GST_FLOW_WRONG_STATE);
|
||||
g_return_val_if_fail (amrnbenc->handle, GST_FLOW_FLUSHING);
|
||||
|
||||
/* we don't deal with squeezing remnants, so simply discard those */
|
||||
if (G_UNLIKELY (buffer == NULL)) {
|
||||
|
|
|
@ -1578,7 +1578,7 @@ gst_asf_demux_loop (GstASFDemux * demux)
|
|||
GST_DEBUG_OBJECT (demux, "got flow %s", gst_flow_get_name (flow));
|
||||
if (flow == GST_FLOW_EOS)
|
||||
goto eos;
|
||||
else if (flow == GST_FLOW_WRONG_STATE) {
|
||||
else if (flow == GST_FLOW_FLUSHING) {
|
||||
GST_DEBUG_OBJECT (demux, "Not fatal");
|
||||
goto pause;
|
||||
} else
|
||||
|
|
|
@ -593,7 +593,7 @@ gst_rdt_manager_src_activate_mode (GstPad * pad, GstObject * parent,
|
|||
/* make sure all data processing stops ASAP */
|
||||
JBUF_LOCK (session);
|
||||
/* mark ourselves as flushing */
|
||||
session->srcresult = GST_FLOW_WRONG_STATE;
|
||||
session->srcresult = GST_FLOW_FLUSHING;
|
||||
GST_DEBUG_OBJECT (rdtmanager, "Disabling pop on queue");
|
||||
/* this unblocks any waiting pops on the src pad task */
|
||||
JBUF_SIGNAL (session);
|
||||
|
|
Loading…
Reference in a new issue