]> git.sesse.net Git - vlc/commitdiff
* Some more const warning fixes
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 11 Dec 2006 20:55:22 +0000 (20:55 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 11 Dec 2006 20:55:22 +0000 (20:55 +0000)
modules/access/cdda.c
modules/access/cdda/access.c
modules/access/cdda/cdda.c
modules/access/cdda/info.c
modules/access/dvdnav.c
modules/access/dvdread.c

index 2ddfa822324ddfc634db6baff3698d1381f2e922..4cddad0adb150132ba73db277ceeccb509899ebb 100644 (file)
@@ -479,7 +479,7 @@ static int GetTracks( access_t *p_access,
         /* If we have CDDB info, change the name */
         if( p_sys->p_disc )
         {
-            char *psz_result;
+            const char *psz_result;
             cddb_track_t *t = cddb_disc_get_track( p_sys->p_disc, i );
             if( t!= NULL )
             {
index 7965d20d21ccf32d361e0fe4338a98b3ef8ca91a..209e62b87fef75dac1bf5c021ea04636f412ba72 100644 (file)
@@ -29,6 +29,7 @@
 #include "callback.h"      /* FIXME - reorganize callback.h, cdda.h better */
 #include "cdda.h"          /* private structures. Also #includes vlc things */
 #include "info.h"          /* headers for meta info retrieval */
+#include "access.h"
 #include <vlc_playlist.h>  /* Has to come *after* cdda.h */
 #include "vlc_keys.h"
 #include <vlc_interface.h>
index 9a3a76a6f0b50278d3693ecc8532ac2addd0a571..2d7abf6c8e3dec79ecd8971c00217509992b5608 100644 (file)
@@ -38,8 +38,8 @@
  *****************************************************************************/
 
 #if LIBCDIO_VERSION_NUM >= 72
-static char *psz_paranoia_list[] = { "none", "overlap", "full" };
-static char *psz_paranoia_list_text[] = { N_("none"), N_("overlap"),
+static const char *psz_paranoia_list[] = { "none", "overlap", "full" };
+static const char *psz_paranoia_list_text[] = { N_("none"), N_("overlap"),
                                           N_("full") };
 #endif
 
index a5e92b1bef70bc426af8d7a9127107f5be28d7c1..e8b0caae56d09e5bdc94f2a1d756c9006920e574 100644 (file)
@@ -839,7 +839,7 @@ CDDACreatePlaylistItem( const access_t *p_access, cdda_data_t *p_cdda,
                psz_mrl, psz_title, (long int) i_mduration / 1000000 );
 
     p_child = playlist_ItemNew( p_playlist, psz_mrl, psz_title );
-    input_GetItem(p_child)->i_duration = (mtime_t) i_mduration;
+    input_GetItem(p_child->p_input)->i_duration = (mtime_t) i_mduration;
     free(psz_mrl);
     free(psz_title);
 
index 089c983fc43d24013ae8f9eca41f8e2f08797f8c..c8d2b715e86dd9ceff8705ad3d073e4e6976c788 100644 (file)
@@ -252,7 +252,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, LANGUAGE_DEFAULT ) !=
         DVDNAV_STATUS_OK )
     {
         msg_Warn( p_demux, "can't set menu language to '%s' (%s)",
index 9f059f557d17451bd79318b32dc435ace302f244..d5ed4a7ac1a407cc873591a9b114c43b0dc1a586 100644 (file)
@@ -83,8 +83,8 @@
            "libcss.\n" \
     "The default method is: key.")
 
-static char *psz_css_list[] = { "title", "disc", "key" };
-static char *psz_css_list_text[] = { N_("title"), N_("Disc"), N_("Key") };
+static const char *psz_css_list[] = { "title", "disc", "key" };
+static const char *psz_css_list_text[] = { N_("title"), N_("Disc"), N_("Key") };
 
 static int  Open ( vlc_object_t * );
 static void Close( vlc_object_t * );