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)) {
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
/* 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);