summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-07-22 14:19:18 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-07-22 14:19:18 -0400
commitb61f931d877172e45b67b44564ca4aec1b9d04af (patch)
treebb091e08ab472ce06778c9b283de6d91018b375c
parent87a97e24d4b4e63dc2fa3a3a12f9b30bfbe54368 (diff)
downloadgst-plugins-bad-b61f931d877172e45b67b44564ca4aec1b9d04af.tar.gz
gst-plugins-bad-b61f931d877172e45b67b44564ca4aec1b9d04af.tar.bz2
gst-plugins-bad-b61f931d877172e45b67b44564ca4aec1b9d04af.zip
mimenc: Ignore errors pushing out new segments
The following buffer push will return more valuable information.
-rw-r--r--ext/mimic/gstmimenc.c16
1 files changed, 4 insertions, 12 deletions
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) {