vo_drm: fixed crashes with --profile=pseudo-gui

This commit is contained in:
Marcin Kurczewski authored and wm4 committed 2015-06-13 16:18:11 +02:00
1 parent 63e4cb5163
commit 8d6c22def4
1 file changed
+1 -1
+1 -1
View File
@@ -496,7 +496,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
{
struct priv *p = vo->priv;
if (p->active) {
if (p->active && mpi) {
struct mp_image src = *mpi;
struct mp_rect src_rc = p->src;
src_rc.x0 = MP_ALIGN_DOWN(src_rc.x0, mpi->fmt.align_x);