From b61f931d877172e45b67b44564ca4aec1b9d04af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 22 Jul 2009 14:19:18 -0400 Subject: mimenc: Ignore errors pushing out new segments The following buffer push will return more valuable information. --- ext/mimic/gstmimenc.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'ext/mimic') diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index fce5a47d..2418e7c8 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -346,13 +346,8 @@ gst_mimenc_chain (GstPad * pad, GstBuffer * in) GST_OBJECT_UNLOCK (mimenc); if (event) { - if (!gst_pad_push_event (mimenc->srcpad, event)) { - res = GST_FLOW_ERROR; - GST_ERROR_OBJECT (mimenc, "Failed to push NEWSEGMENT event"); - gst_buffer_unref (header); - gst_buffer_unref (out_buf); - goto out; - } + if (!gst_pad_push_event (mimenc->srcpad, event)) + GST_WARNING_OBJECT (mimenc, "Failed to push NEWSEGMENT event"); } res = gst_pad_push (mimenc->srcpad, header); @@ -513,11 +508,8 @@ paused_mode_task (gpointer data) " sending out a pause frame"); if (event) { - if (!gst_pad_push_event (mimenc->srcpad, event)) { - GST_ERROR_OBJECT (mimenc, "Failed to push NEWSEGMENT event"); - gst_buffer_unref (buffer); - goto stop_task; - } + if (!gst_pad_push_event (mimenc->srcpad, event)) + GST_WARNING_OBJECT (mimenc, "Failed to push NEWSEGMENT event"); } ret = gst_pad_push (mimenc->srcpad, buffer); if (ret < 0) { -- cgit v1.2.1