[vlc-commits] access/cdda: Do not discard const qualifier

Marvin Scholz git at videolan.org
Mon Aug 7 19:53:08 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Aug  7 18:26:01 2017 +0200| [bf018153d0496a18a7205b446ac0d2482c7d43a1] | committer: Rémi Denis-Courmont

access/cdda: Do not discard const qualifier

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/access/cdda.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index 1dc3227f2e..061ad4bf48 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -191,7 +191,7 @@ static int DemuxControl(demux_t *demux, int query, va_list args)
             *va_arg(args, double *) = (double)(sys->position)
                                       / (double)(sys->length);
             break;
- 
+
         case DEMUX_SET_POSITION:
             sys->position = lround(va_arg(args, double) * sys->length);
             break;
@@ -420,7 +420,7 @@ static void AccessGetMeta(stream_t *access, vlc_meta_t *meta)
 #ifdef HAVE_LIBCDDB
     if (sys->cddb != NULL)
     {
-        char *str = cddb_disc_get_title(sys->cddb);
+        const char *str = cddb_disc_get_title(sys->cddb);
         if (NONEMPTY(str))
             vlc_meta_SetTitle(meta, str);
 



More information about the vlc-commits mailing list