[vlc-devel] [PATCH] access/cdda: Do not discard const qualifier
Marvin Scholz
epirat07 at gmail.com
Mon Aug 7 18:26:01 CEST 2017
---
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);
--
2.11.0 (Apple Git-81)
More information about the vlc-devel
mailing list