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
1 changed files with 3 additions and 0 deletions

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);