/* if there is a processing instruction, gst_cmml_dec_parse_preamble
* will be triggered. Otherwise we need to call it manually.
*/
- if (!GST_FLOW_IS_FATAL (dec->flow_return) && !dec->sent_root) {
+ if (dec->flow_return != GST_FLOW_OK && !dec->sent_root) {
guchar *preamble = (guchar *) g_strndup ((gchar *) GST_BUFFER_DATA (buffer),
GST_BUFFER_SIZE (buffer));
dec->flow_return = gst_pad_push (dec->srcpad, buffer);
}
- if (dec->flow_return == GST_FLOW_NOT_LINKED)
- dec->flow_return = GST_FLOW_OK; /* Ignore NOT_LINKED */
- if (!GST_FLOW_IS_FATAL (dec->flow_return)) {
+ if (dec->flow_return == GST_FLOW_OK) {
GST_INFO_OBJECT (dec, "preamble parsed");
}
enc->flow_return = gst_cmml_enc_push (enc, buffer);
headers = g_list_delete_link (headers, headers);
- if (GST_FLOW_IS_FATAL (enc->flow_return))
+ if (enc->flow_return != GST_FLOW_OK)
goto push_error;
}
GST_BUFFER_TIMESTAMP (buffer) = clip->start_time;
res = gst_cmml_enc_push (enc, buffer);
- if (GST_FLOW_IS_FATAL (res))
+ if (res != GST_FLOW_OK)
goto done;
if (clip->end_time != GST_CLOCK_TIME_NONE) {
GstFlowReturn res;
res = gst_pad_push (enc->srcpad, buffer);
- if (GST_FLOW_IS_FATAL (res))
+ if (res != GST_FLOW_OK)
GST_WARNING_OBJECT (enc, "push returned: %s", gst_flow_get_name (res));
return res;