asfdemux: Fix seeking after last commits
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 28 Jun 2010 12:34:30 +0000 (09:34 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 28 Jun 2010 12:34:30 +0000 (09:34 -0300)
Don't handle wrong-state returns as errors to allow seeking to work
again.

gst/asfdemux/gstasfdemux.c

index 55c73bca566c3aac32b98d1eb59468ab5b39045a..b11a850b43490aa88afe55b03be4d35276eb108d 100644 (file)
@@ -1650,7 +1650,7 @@ pause:
     gst_pad_pause_task (demux->sinkpad);
 
     /* For the error cases (not EOS) */
-    if (!sent_eos) {
+    if (!sent_eos && (GST_FLOW_IS_FATAL (flow) || flow == GST_FLOW_NOT_LINKED)) {
       /* Post an error. Hopefully something else already has, but if not... */
       GST_ELEMENT_ERROR (demux, STREAM, FAILED,
           (_("Internal data stream error.")),