From 26621fbb4da44dcaa7f7f74128c20e4370b5e82e Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Wed, 4 Jun 2014 10:33:23 +0300 Subject: video_out_mmal: do not store compile-time constant in mmal_driver_t --- src/video_out/video_out_mmal.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/video_out/video_out_mmal.c b/src/video_out/video_out_mmal.c index f4ff89753..32a689010 100644 --- a/src/video_out/video_out_mmal.c +++ b/src/video_out/video_out_mmal.c @@ -67,7 +67,6 @@ typedef struct { /* xine */ xine_t *xine; alphablend_t alphablend_extra_data; - uint32_t capabilities; int gui_width, gui_height; /* mmal */ @@ -274,9 +273,9 @@ static int configure_renderer(mmal_driver_t *this, int format, int width, int he static uint32_t mmal_get_capabilities (vo_driver_t *this_gen) { - mmal_driver_t *this = (mmal_driver_t *) this_gen; - - return this->capabilities; + return + VO_CAP_YUY2 | VO_CAP_YV12 | + VO_CAP_CROP; } static void mmal_frame_field (vo_frame_t *vo_img, int which_field) { @@ -517,7 +516,6 @@ static vo_driver_t *open_plugin (video_driver_class_t *class_gen, const void *vi return NULL; this->xine = class->xine; - this->capabilities = VO_CAP_YUY2 | VO_CAP_YV12 | VO_CAP_CROP; pthread_mutex_init (&this->mutex, NULL); pthread_cond_init (&this->cond, NULL); -- cgit v1.2.3