mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
omxvideodec: don't import non-dmabuf when dec is in dmabuf mode
Fix 'omxh264dec ! videocrop' pipeline. https://bugzilla.gnome.org/show_bug.cgi?id=796918
This commit is contained in:
parent
be5ec66a84
commit
c89b54fe78
1 changed files with 7 additions and 0 deletions
|
@ -707,6 +707,13 @@ gst_omx_try_importing_buffer (GstOMXVideoDec * self, GstBufferPool * pool,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self->dmabuf && !gst_is_dmabuf_memory (mem)) {
|
||||||
|
GST_INFO_OBJECT (self,
|
||||||
|
"%d-th buffer doesn't contain dmabuf while the decoder is in dmabuf mode",
|
||||||
|
i);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
*frame = g_slice_new0 (GstVideoFrame);
|
*frame = g_slice_new0 (GstVideoFrame);
|
||||||
|
|
||||||
is_mapped = gst_video_frame_map (*frame, v_info, buffer, flags);
|
is_mapped = gst_video_frame_map (*frame, v_info, buffer, flags);
|
||||||
|
|
Loading…
Reference in a new issue