1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-10 16:24:20 +00:00

vo_gpu: hwdec_drmprime_drm: don't crash for non-GL contexts

Using vulkan with --hwdec crashed because of this.
This commit is contained in:
wm4 2017-12-17 16:03:20 +01:00 committed by Kevin Mitchell
parent b0d0bc5700
commit 9ed8ca2529

View File

@ -205,6 +205,9 @@ static int init(struct ra_hwdec *hw)
struct priv *p = hw->priv;
int drm_overlay;
if (!ra_is_gl(hw->ra))
return -1;
p->log = hw->log;
void *tmp = talloc_new(NULL);