[MPlayer-cvslog] r32313 - trunk/libvo/video_out.c

diego subversion at mplayerhq.hu
Mon Sep 20 09:33:53 CEST 2010


Author: diego
Date: Mon Sep 20 09:33:53 2010
New Revision: 32313

Log:
Do not falsely declare some vo_functions_t declarations as const.
Also add a comment so this mistake is not repeated.

Modified:
   trunk/libvo/video_out.c

Modified: trunk/libvo/video_out.c
==============================================================================
--- trunk/libvo/video_out.c	Mon Sep 20 09:21:17 2010	(r32312)
+++ trunk/libvo/video_out.c	Mon Sep 20 09:33:53 2010	(r32313)
@@ -93,7 +93,6 @@ char *vo_wintitle;
 extern const vo_functions_t video_out_mga;
 extern const vo_functions_t video_out_xmga;
 extern const vo_functions_t video_out_x11;
-extern const vo_functions_t video_out_xover;
 extern const vo_functions_t video_out_xvmc;
 extern const vo_functions_t video_out_vdpau;
 extern const vo_functions_t video_out_xv;
@@ -111,9 +110,7 @@ extern const vo_functions_t video_out_nu
 extern const vo_functions_t video_out_zr;
 extern const vo_functions_t video_out_zr2;
 extern const vo_functions_t video_out_bl;
-extern const vo_functions_t video_out_fbdev;
 extern const vo_functions_t video_out_fbdev2;
-extern const vo_functions_t video_out_svga;
 extern const vo_functions_t video_out_png;
 extern const vo_functions_t video_out_ggi;
 extern const vo_functions_t video_out_aa;
@@ -129,12 +126,8 @@ extern const vo_functions_t video_out_iv
 extern const vo_functions_t video_out_v4l2;
 extern const vo_functions_t video_out_jpeg;
 extern const vo_functions_t video_out_gif89a;
-extern vo_functions_t video_out_vesa;
 extern const vo_functions_t video_out_directfb;
 extern const vo_functions_t video_out_dfbmga;
-extern const vo_functions_t video_out_xvidix;
-extern const vo_functions_t video_out_winvidix;
-extern const vo_functions_t video_out_cvidix;
 extern const vo_functions_t video_out_tdfx_vid;
 extern const vo_functions_t video_out_xvr100;
 extern const vo_functions_t video_out_tga;
@@ -143,6 +136,16 @@ extern const vo_functions_t video_out_qu
 extern const vo_functions_t video_out_pnm;
 extern const vo_functions_t video_out_md5sum;
 
+/* The following declarations are _not_ const because functions pointers
+ * get overloaded during (re)initialization. */
+extern vo_functions_t video_out_cvidix;
+extern vo_functions_t video_out_fbdev;
+extern vo_functions_t video_out_svga;
+extern vo_functions_t video_out_vesa;
+extern vo_functions_t video_out_winvidix;
+extern vo_functions_t video_out_xover;
+extern vo_functions_t video_out_xvidix;
+
 const vo_functions_t* const video_out_drivers[] =
 {
 #ifdef CONFIG_XVR100


More information about the MPlayer-cvslog mailing list