mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
mimenc: Ignore errors pushing out new segments
The following buffer push will return more valuable information.
This commit is contained in:
parent
87a97e24d4
commit
b61f931d87
1 changed files with 4 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue