GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 8 Feb 2012 15:38:09 +0000 (16:38 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 8 Feb 2012 15:38:09 +0000 (16:38 +0100)
ext/amrnb/amrnbenc.c
gst/asfdemux/gstasfdemux.c
gst/realmedia/rdtmanager.c

index 09ff0e1..3c393de 100644 (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)) {
index 37738ef..aa8e200 100644 (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
index e2b2d0f..bb37a06 100644 (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);