mimic: Function can't fail

This commit is contained in:
Olivier Crête 2009-10-12 19:18:20 -04:00
parent ee313094c3
commit 0ba7742cc1

View file

@ -332,13 +332,6 @@ gst_mim_enc_chain (GstPad * pad, GstBuffer * in)
header = gst_mim_enc_create_tcp_header (mimenc, buffer_size, header = gst_mim_enc_create_tcp_header (mimenc, buffer_size,
GST_BUFFER_TIMESTAMP (out_buf), keyframe, FALSE); GST_BUFFER_TIMESTAMP (out_buf), keyframe, FALSE);
if (!header) {
gst_buffer_unref (out_buf);
GST_DEBUG_OBJECT (mimenc, "header not created succesfully");
res = GST_FLOW_ERROR;
goto out_unlock;
}
if (mimenc->need_newsegment) { if (mimenc->need_newsegment) {
event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0); event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, 0, -1, 0);
mimenc->need_newsegment = FALSE; mimenc->need_newsegment = FALSE;