asfdemux: Don't forget to update flow variable
authorEdward Hervey <bilboed@bilboed.com>
Mon, 18 Jan 2010 17:01:55 +0000 (18:01 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 18 Jan 2010 17:01:55 +0000 (18:01 +0100)
Forgot to update the return value in the loop.

gst/asfdemux/gstasfdemux.c

index 7719109..135d910 100644 (file)
@@ -890,10 +890,10 @@ gst_asf_demux_aggregate_flow_return (GstASFDemux * demux, AsfStream * stream,
 
   for (i = 0; i < demux->num_streams; i++) {
     if (demux->stream[i].active) {
-      GstFlowReturn flowret = demux->stream[i].last_flow;
+      flow = demux->stream[i].last_flow;
       GST_DEBUG_OBJECT (demux, "Aggregating: flow %i return %s", i,
-          gst_flow_get_name (flowret));
-      if (flowret != GST_FLOW_NOT_LINKED)
+          gst_flow_get_name (flow));
+      if (flow != GST_FLOW_NOT_LINKED)
         goto done;
     }
   }