[libdvdnav-devel] [Git][videolan/libdvdnav][master] Remove const from dvdnav_get_volid_string

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Aug 11 12:21:12 UTC 2025



Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdnav


Commits:
1f7b425f by Miguel Borges de Freitas at 2025-08-11T12:20:02+00:00
Remove const from dvdnav_get_volid_string

- - - - -


2 changed files:

- src/dvdnav.c
- src/dvdnav/dvdnav.h


Changes:

=====================================
src/dvdnav.c
=====================================
@@ -955,7 +955,7 @@ dvdnav_status_t dvdnav_get_serial_string(dvdnav_t *this, const char **serial_str
   return DVDNAV_STATUS_OK;
 }
 
-const char * dvdnav_get_volid_string(dvdnav_t *this) {
+char * dvdnav_get_volid_string(dvdnav_t *this) {
   if (!this || !this->vm || !this->vm->dvd) {
     printerr("Invalid state, vm or reader not available.");
     return NULL;


=====================================
src/dvdnav/dvdnav.h
=====================================
@@ -623,7 +623,7 @@ dvdnav_status_t dvdnav_get_serial_string(dvdnav_t *self, const char **serial_str
  * Note: The string is malloc'd so caller has to free() the returned
  * string when done with it.
  */
-const char * dvdnav_get_volid_string(dvdnav_t *self);
+char * dvdnav_get_volid_string(dvdnav_t *self);
 
 /*
  * Get video aspect code.



View it on GitLab: https://code.videolan.org/videolan/libdvdnav/-/commit/1f7b425f91c09e46a5fcc063fe748f0363c1016a

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdnav/-/commit/1f7b425f91c09e46a5fcc063fe748f0363c1016a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the libdvdnav-devel mailing list