summaryrefslogtreecommitdiffstats
path: root/video/vdpau.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/vdpau.h')
-rw-r--r--video/vdpau.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/video/vdpau.h b/video/vdpau.h
index 0af00f098b..2304ecd0d6 100644
--- a/video/vdpau.h
+++ b/video/vdpau.h
@@ -12,14 +12,17 @@
#include "common/msg.h"
#include "hwdec.h"
-#define CHECK_VDP_ERROR(ctx, message) \
+#define CHECK_VDP_ERROR_ST(ctx, message, statement) \
do { \
if (vdp_st != VDP_STATUS_OK) { \
MP_ERR(ctx, "%s: %s\n", message, vdp->get_error_string(vdp_st)); \
- return -1; \
+ statement \
} \
} while (0)
+#define CHECK_VDP_ERROR(ctx, message) \
+ CHECK_VDP_ERROR_ST(ctx, message, return -1;)
+
#define CHECK_VDP_WARNING(ctx, message) \
do { \
if (vdp_st != VDP_STATUS_OK) \
@@ -71,6 +74,9 @@ struct mp_vdpau_ctx {
bool in_use;
int64_t age;
} video_surfaces[MAX_VIDEO_SURFACES];
+ struct mp_vdpau_mixer *getimg_mixer;
+ VdpOutputSurface getimg_surface;
+ int getimg_w, getimg_h;
};
struct mp_vdpau_ctx *mp_vdpau_create_device_x11(struct mp_log *log, Display *x11);