Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libdvdnav
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Code
Merge requests
10
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
libdvdnav
Compare revisions
6995b0bec10c39f6efdf7def4b81f559b245c231 to 35bd5143663fe46abfebaf5759ad64791da044f8
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
videolan/libdvdnav
Select target project
No results found
35bd5143663fe46abfebaf5759ad64791da044f8
Select Git revision
Branches
buildsystem-cleanup
master
Tags
5.0.0
5.0.1
5.0.2
5.0.3
6.0.0
6.0.1
6.1.0
6.1.1
Swap
Target
videolan/libdvdnav
Select target project
videolan/libdvdnav
thresh/libdvdnav
robUx4/libdvdnav
jsgh/libdvdnav
chouquette/libdvdnav
jbk/libdvdnav
martymac/libdvdnav
Mathias_Couder/libdvdnav
DimitriPapadopoulos/libdvdnav
hpi/libdvdnav
miguelborgesdefreitas/libdvdnav
dmahurin/libdvdnav
ATinySpaceMarine/libdvdnav
masstock/libdvdnav
14 results
6995b0bec10c39f6efdf7def4b81f559b245c231
Select Git revision
Branches
buildsystem-cleanup
master
Tags
5.0.0
5.0.1
5.0.2
5.0.3
6.0.0
6.0.1
6.1.0
6.1.1
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
add dvdnav_get_volid_string
· f5a17889
Miguel Borges de Freitas
authored
2 years ago
f5a17889
Update NEWS with dvdnav_get_volid_string addition
· 35bd5143
Miguel Borges de Freitas
authored
2 years ago
35bd5143
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/dvdnav.c
+22
-0
22 additions, 0 deletions
src/dvdnav.c
src/dvdnav/dvdnav.h
+14
-1
14 additions, 1 deletion
src/dvdnav/dvdnav.h
with
37 additions
and
1 deletion
ChangeLog
View file @
35bd5143
libdvdnav (next)
* add dvdnav_get_volid_string to obtain the volume id of the disc
* add dvdnav_get_number_of_streams API to list tracks
* add dvdnav_set_active_stream API to activate a stream
* add dvdnav_toggle_spu_stream API to enable/disable the current SPU stream
...
...
This diff is collapsed.
Click to expand it.
src/dvdnav.c
View file @
35bd5143
...
...
@@ -955,6 +955,28 @@ 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
)
{
if
(
!
this
||
!
this
->
vm
||
!
this
->
vm
->
dvd
)
{
printerr
(
"Invalid state, vm or reader not available."
);
return
NULL
;
}
char
*
volid_str
=
malloc
(
33
);
if
(
volid_str
==
NULL
)
{
printerr
(
"Insufficient memory available."
);
return
NULL
;
}
if
(
DVDUDFVolumeInfo
(
this
->
vm
->
dvd
,
volid_str
,
32
,
NULL
,
0
)
==
-
1
)
{
if
(
DVDISOVolumeInfo
(
this
->
vm
->
dvd
,
volid_str
,
33
,
NULL
,
0
)
==
-
1
)
{
printerr
(
"Failed to obtain volume id."
);
free
(
volid_str
);
return
NULL
;
}
}
return
volid_str
;
}
uint8_t
dvdnav_get_video_aspect
(
dvdnav_t
*
this
)
{
uint8_t
retval
;
...
...
This diff is collapsed.
Click to expand it.
src/dvdnav/dvdnav.h
View file @
35bd5143
...
...
@@ -588,7 +588,7 @@ dvdnav_status_t dvdnav_spu_language_select(dvdnav_t *self,
* this is a descriptive string such as `THE_MATRIX' but sometimes is singularly
* uninformative such as `PDVD-011421'. Some DVD authors even forget to set this,
* so you may also read the default of the authoring software they used, like
* `DVDVolume'.
* `DVDVolume'
(see also dvdnav_get_volid_string)
.
*/
dvdnav_status_t
dvdnav_get_title_string
(
dvdnav_t
*
self
,
const
char
**
title_str
);
...
...
@@ -599,6 +599,19 @@ dvdnav_status_t dvdnav_get_title_string(dvdnav_t *self, const char **title_str);
*/
dvdnav_status_t
dvdnav_get_serial_string
(
dvdnav_t
*
self
,
const
char
**
serial_str
);
/*
* Returns the VolumeIdentifier of the disc or NULL if it could
* not be obtained. The VolumeIdentifier might be latin-1 encoded
* (8bit unicode) null terminated and max 32 bytes (including '\0');
* or coded with '0-9','A-Z','_' null terminated and max 33 bytes
* (including '\0').
* See also dvdnav_get_title_string
*
* 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
);
/*
* Get video aspect code.
* The aspect code does only change on VTS boundaries.
...
...
This diff is collapsed.
Click to expand it.