mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
va: baseenc: Do not import the VA surface from other display.
Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1167 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3322>
This commit is contained in:
parent
d51b29b1dc
commit
1881d1826a
1 changed files with 2 additions and 1 deletions
|
@ -238,7 +238,8 @@ _try_import_buffer (GstVaBaseEnc * base, GstBuffer * inbuf)
|
|||
|
||||
/* The VA buffer. */
|
||||
surface = gst_va_buffer_get_surface (inbuf);
|
||||
if (surface != VA_INVALID_ID)
|
||||
if (surface != VA_INVALID_ID &&
|
||||
(gst_va_buffer_peek_display (inbuf) == base->display))
|
||||
return TRUE;
|
||||
|
||||
/* TODO: DMA buffer. */
|
||||
|
|
Loading…
Reference in a new issue