asfparse: Don't use GST_FLOW_IS_FATAL()

Also don't push EOS downstream on WRONG_STATE, it will be dropped anyway.
This commit is contained in:
Sebastian Dröge 2010-08-27 18:33:49 +02:00
parent 5816dbce6f
commit b68a1e805d

View file

@ -352,12 +352,11 @@ pause:
GST_INFO_OBJECT (asfparse, "Pausing sinkpad task");
gst_pad_pause_task (pad);
if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
if (ret == GST_FLOW_UNEXPECTED) {
} else {
GST_ELEMENT_ERROR (asfparse, STREAM, FAILED,
(NULL), ("streaming task paused, reason %s (%d)", reason, ret));
}
if (ret == GST_FLOW_UNEXPECTED) {
gst_pad_push_event (asfparse->srcpad, gst_event_new_eos ());
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) {
GST_ELEMENT_ERROR (asfparse, STREAM, FAILED,
(NULL), ("streaming task paused, reason %s (%d)", reason, ret));
gst_pad_push_event (asfparse->srcpad, gst_event_new_eos ());
}
}