[vlc-devel] commit: Fix compilation warnings ( here the lib might have ask for const char* instead of char as they don' t modify the string at all) ( Rémi Duraffort )

git version control git at videolan.org
Thu Aug 14 23:20:22 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug 14 23:21:14 2008 +0200| [9b87946bde7aacd0d1b31cde672331508281d655] | committer: Rémi Duraffort 

Fix compilation warnings (here the lib might have ask for const char* instead of char as they don't modify the string at all)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b87946bde7aacd0d1b31cde672331508281d655
---

 modules/access/dvdnav.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 429a97f..5737186 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -257,7 +257,7 @@ static int Open( vlc_object_t *p_this )
     /* Set menu language ("en")
      * XXX: maybe it would be better to set it like audio/spu
      * or to create a --menu-language option */
-    if( dvdnav_menu_language_select( p_sys->dvdnav, LANGUAGE_DEFAULT ) !=
+    if( dvdnav_menu_language_select( p_sys->dvdnav, (char*)LANGUAGE_DEFAULT ) !=
         DVDNAV_STATUS_OK )
     {
         msg_Warn( p_demux, "can't set menu language to '%s' (%s)",
@@ -273,7 +273,7 @@ static int Open( vlc_object_t *p_this )
                   psz_code, dvdnav_err_to_string( p_sys->dvdnav ) );
         /* We try to fall back to 'en' */
         if( strcmp( psz_code, LANGUAGE_DEFAULT ) )
-            dvdnav_audio_language_select( p_sys->dvdnav, LANGUAGE_DEFAULT );
+            dvdnav_audio_language_select( p_sys->dvdnav, (char*)LANGUAGE_DEFAULT );
     }
     free( psz_code );
 
@@ -286,7 +286,7 @@ static int Open( vlc_object_t *p_this )
                   psz_code, dvdnav_err_to_string( p_sys->dvdnav ) );
         /* We try to fall back to 'en' */
         if( strcmp( psz_code, LANGUAGE_DEFAULT ) )
-            dvdnav_spu_language_select(p_sys->dvdnav, LANGUAGE_DEFAULT );
+            dvdnav_spu_language_select(p_sys->dvdnav, (char*)LANGUAGE_DEFAULT );
     }
     free( psz_code );
 




More information about the vlc-devel mailing list