diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-07-31 15:04:33 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-08-30 10:59:30 +0200 |
commit | c89b54fe7867568f85ccc3b8660bbbd839659fcd (patch) | |
tree | edadf7d033bbf9af746ae89291a0b6ddc87ba16d | |
parent | be5ec66a84a64a718c1194eb47a9119d846336fe (diff) | |
download | gst-omx-c89b54fe7867568f85ccc3b8660bbbd839659fcd.tar.gz |
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
-rw-r--r-- | omx/gstomxvideodec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index fb04ea2..cdf6300 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -707,6 +707,13 @@ gst_omx_try_importing_buffer (GstOMXVideoDec * self, GstBufferPool * pool, 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); is_mapped = gst_video_frame_map (*frame, v_info, buffer, flags); |