diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-06-04 10:33:23 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-06-04 10:33:23 +0300 |
commit | 26621fbb4da44dcaa7f7f74128c20e4370b5e82e (patch) | |
tree | 16946c8c7e9be8ab3b2b8f1a0601dbf1aeb6301b /src | |
parent | da0fc5762b099dac5304c44698ea31aee975d91a (diff) | |
download | xine-lib-26621fbb4da44dcaa7f7f74128c20e4370b5e82e.tar.gz xine-lib-26621fbb4da44dcaa7f7f74128c20e4370b5e82e.tar.bz2 |
video_out_mmal: do not store compile-time constant in mmal_driver_t
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_mmal.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); |