GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING

This commit is contained in:
Wim Taymans 2012-02-08 16:38:09 +01:00
parent cb976a9ffa
commit f731208bcd
3 changed files with 3 additions and 3 deletions
ext/amrnb
gst
asfdemux
realmedia

View file

@ -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)) {

View file

@ -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

View file

@ -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);