mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
mimdec: Flush adapter right ater using it
This commit is contained in:
parent
fd9f049bf2
commit
456456401a
1 changed files with 1 additions and 2 deletions
|
@ -277,6 +277,7 @@ gst_mim_dec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
res = GST_FLOW_ERROR;
|
res = GST_FLOW_ERROR;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
gst_adapter_flush (mimdec->adapter, payload_size);
|
||||||
|
|
||||||
if (GST_CLOCK_TIME_IS_VALID (in_time))
|
if (GST_CLOCK_TIME_IS_VALID (in_time))
|
||||||
GST_BUFFER_TIMESTAMP (out_buf) = in_time;
|
GST_BUFFER_TIMESTAMP (out_buf) = in_time;
|
||||||
|
@ -300,8 +301,6 @@ gst_mim_dec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
gst_buffer_set_caps (out_buf, caps);
|
gst_buffer_set_caps (out_buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
res = gst_pad_push (mimdec->srcpad, out_buf);
|
res = gst_pad_push (mimdec->srcpad, out_buf);
|
||||||
|
|
||||||
gst_adapter_flush (mimdec->adapter, payload_size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
Loading…
Reference in a new issue