spc: Don't use GST_FLOW_IS_FATAL()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 21 Sep 2010 10:27:56 +0000 (12:27 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 21 Sep 2010 10:27:56 +0000 (12:27 +0200)
ext/spc/gstspc.c

index 0facad2..2c74a9c 100644 (file)
@@ -439,7 +439,8 @@ spc_play (GstPad * pad)
 
     gst_pad_pause_task (pad);
 
-    if (GST_FLOW_IS_FATAL (flow_return) || flow_return == GST_FLOW_NOT_LINKED) {
+    if (flow_return <= GST_FLOW_UNEXPECTED
+        || flow_return == GST_FLOW_NOT_LINKED) {
       gst_pad_push_event (pad, gst_event_new_eos ());
     }
   }