mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
mfc: Fix double-unmap of the codec data
This commit is contained in:
parent
30fd0ded4f
commit
2cf73892e1
1 changed files with 2 additions and 4 deletions
|
@ -293,14 +293,12 @@ gst_mfc_dec_queue_input (GstMFCDec * self, GstVideoCodecFrame * frame)
|
||||||
mfc_buffer_set_input_size (mfc_inbuf, map.size);
|
mfc_buffer_set_input_size (mfc_inbuf, map.size);
|
||||||
|
|
||||||
gst_buffer_unmap (inbuf, &map);
|
gst_buffer_unmap (inbuf, &map);
|
||||||
|
gst_buffer_replace (&self->codec_data, NULL);
|
||||||
|
inbuf = NULL;
|
||||||
|
|
||||||
timestamp.tv_usec = 0;
|
timestamp.tv_usec = 0;
|
||||||
timestamp.tv_sec = -1;
|
timestamp.tv_sec = -1;
|
||||||
|
|
||||||
gst_buffer_unmap (self->codec_data, &map);
|
|
||||||
gst_buffer_replace (&self->codec_data, NULL);
|
|
||||||
inbuf = NULL;
|
|
||||||
|
|
||||||
if ((mfc_ret =
|
if ((mfc_ret =
|
||||||
mfc_dec_enqueue_input (self->context, mfc_inbuf, ×tamp)) < 0)
|
mfc_dec_enqueue_input (self->context, mfc_inbuf, ×tamp)) < 0)
|
||||||
goto enqueue_error;
|
goto enqueue_error;
|
||||||
|
|
Loading…
Reference in a new issue