Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libdvdread
Commits
08d1ca69
Commit
08d1ca69
authored
Sep 09, 2015
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
7247a199
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/dvd_reader.c
src/dvd_reader.c
+3
-3
src/dvd_udf.c
src/dvd_udf.c
+1
-1
src/dvdread/dvd_udf.h
src/dvdread/dvd_udf.h
+1
-1
No files found.
src/dvd_reader.c
View file @
08d1ca69
...
...
@@ -173,7 +173,7 @@ static int initAllCSSKeys( dvd_reader_t *dvd )
uint32_t
start
,
len
;
int
title
;
char
*
nokeys_str
=
getenv
(
"DVDREAD_NOKEYS"
);
const
char
*
nokeys_str
=
getenv
(
"DVDREAD_NOKEYS"
);
if
(
nokeys_str
!=
NULL
)
return
0
;
...
...
@@ -642,7 +642,7 @@ void DVDClose( dvd_reader_t *dvd )
/**
* Open an unencrypted file on a DVD image file.
*/
static
dvd_file_t
*
DVDOpenFileUDF
(
dvd_reader_t
*
dvd
,
char
*
filename
,
static
dvd_file_t
*
DVDOpenFileUDF
(
dvd_reader_t
*
dvd
,
const
char
*
filename
,
int
do_cache
)
{
uint32_t
start
,
len
;
...
...
@@ -746,7 +746,7 @@ static int findDVDFile( dvd_reader_t *dvd, const char *file, char *filename )
/**
* Open an unencrypted file from a DVD directory tree.
*/
static
dvd_file_t
*
DVDOpenFilePath
(
dvd_reader_t
*
dvd
,
char
*
filename
)
static
dvd_file_t
*
DVDOpenFilePath
(
dvd_reader_t
*
dvd
,
const
char
*
filename
)
{
char
full_path
[
PATH_MAX
+
1
];
dvd_file_t
*
dvd_file
;
...
...
src/dvd_udf.c
View file @
08d1ca69
...
...
@@ -794,7 +794,7 @@ static int UDFFindPartition( dvd_reader_t *device, int partnum,
return
part
->
valid
;
}
uint32_t
UDFFindFile
(
dvd_reader_t
*
device
,
char
*
filename
,
uint32_t
UDFFindFile
(
dvd_reader_t
*
device
,
const
char
*
filename
,
uint32_t
*
filesize
)
{
uint8_t
LogBlock_base
[
DVD_VIDEO_LB_LEN
+
2048
];
...
...
src/dvdread/dvd_udf.h
View file @
08d1ca69
...
...
@@ -46,7 +46,7 @@ extern "C" {
* '/VIDEO_TS/VTS_01_1.IFO'. On success, filesize will be set to the size of
* the file in bytes.
*/
uint32_t
UDFFindFile
(
dvd_reader_t
*
device
,
char
*
filename
,
uint32_t
*
size
);
uint32_t
UDFFindFile
(
dvd_reader_t
*
device
,
const
char
*
filename
,
uint32_t
*
size
);
int
UDFGetVolumeIdentifier
(
dvd_reader_t
*
device
,
char
*
volid
,
unsigned
int
volid_size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment