]> git.sesse.net Git - vlc/blobdiff - modules/video_output/omapfb.c
Factorized 8->16 bits audio conversions.
[vlc] / modules / video_output / omapfb.c
index d18616b5be29a10af2bff550ae111b3dda2f492d..bd530a4e2da7c8be0475b29cd8706324003d830b 100644 (file)
@@ -27,7 +27,6 @@
 # include "config.h"
 #endif
 
-#include <errno.h>                                                 /* ENOMEM */
 #include <fcntl.h>                                                 /* open() */
 #include <unistd.h>                                               /* close() */
 
@@ -89,7 +88,7 @@ static void ToggleFullScreen ( vout_thread_t * );
     "Embed the framebuffer overlay into a X11 window" )
 
 vlc_module_begin();
-    set_shortname( "OMAP framebuffer" );
+    set_shortname( N_("OMAP framebuffer") );
     set_category( CAT_VIDEO );
     set_subcategory( SUBCAT_VIDEO_VOUT );
     add_file( FB_DEV_VAR, "/dev/fb0", NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
@@ -232,7 +231,9 @@ static int Init( vout_thread_t *p_vout )
     vout_sys_t *p_sys = (vout_sys_t *)p_vout->p_sys;
 
     // We want to keep the same aspect
-    p_vout->fmt_out.i_aspect = p_vout->output.i_aspect = p_vout->render.i_aspect;
+    p_vout->output.i_aspect = p_vout->render.i_aspect;
+    p_vout->fmt_out.i_sar_num = p_vout->render.i_aspect * p_vout->render.i_height;
+    p_vout->fmt_out.i_sar_den = VOUT_ASPECT_FACTOR      * p_vout->render.i_width;
     // We ask where the video should be displayed in the video area
     vout_PlacePicture( p_vout, p_sys->main_window.i_width,
                        p_sys->main_window.i_height,