Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libdvdread
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
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
libdvdread
Compare revisions
04d2b7f2080d2f04beed4c3c58938e6c95894ae1 to f56bef305b86755415200a137b7acc70889c87bf
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
videolan/libdvdread
Select target project
No results found
f56bef305b86755415200a137b7acc70889c87bf
Select Git revision
Swap
Target
videolan/libdvdread
Select target project
videolan/libdvdread
thresh/libdvdread
ePirat/libdvdread
jsgh/libdvdread
chouquette/libdvdread
jbk/libdvdread
sebastinas/libdvdread
hpi/libdvdread
Mathias_Couder/libdvdread
robUx4/libdvdread
miguelborgesdefreitas/libdvdread
basilgello/libdvdread
vpeter4/libdvdread
13 results
04d2b7f2080d2f04beed4c3c58938e6c95894ae1
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (4)
Silence warnings
· 9ba15098
Petri Hintukainen
authored
3 years ago
9ba15098
dlfcn: make sure path is nul-terminated after strncpy()
· dc1caa06
Petri Hintukainen
authored
3 years ago
dc1caa06
Silence unused variable warning (_WIN32)
· 939671fb
Petri Hintukainen
authored
3 years ago
939671fb
Drop unused include and define
· f56bef30
Petri Hintukainen
authored
3 years ago
f56bef30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
msvc/contrib/dlfcn.c
+3
-1
3 additions, 1 deletion
msvc/contrib/dlfcn.c
src/dvd_reader.c
+2
-3
2 additions, 3 deletions
src/dvd_reader.c
with
5 additions
and
4 deletions
msvc/contrib/dlfcn.c
View file @
f56bef30
...
...
@@ -17,6 +17,7 @@ void *dlopen(const char *module_name, int mode)
UINT
em
;
HINSTANCE
dsoh
;
char
path
[
MAX_PATH
],
*
p
;
(
void
)
mode
;
/* Load the module...
* per PR2555, the LoadLibraryEx function is very picky about slashes.
* Debugging on NT 4 SP 6a reveals First Chance Exception within NTDLL.
...
...
@@ -26,8 +27,9 @@ void *dlopen(const char *module_name, int mode)
* Transpose '\' for '/' in the filename.
*/
(
void
)
strncpy
(
path
,
module_name
,
MAX_PATH
);
path
[
MAX_PATH
-
1
]
=
0
;
p
=
path
;
while
(
p
=
strchr
(
p
,
'/'
))
while
(
(
p
=
strchr
(
p
,
'/'
))
)
*
p
=
'\\'
;
/* First assume the dso/dll's required by -this- dso are sitting in the
...
...
This diff is collapsed.
Click to expand it.
src/dvd_reader.c
View file @
f56bef30
...
...
@@ -49,8 +49,6 @@ static inline int _private_gettimeofday( struct timeval *tv, void *tz )
}
# define gettimeofday(TV, TZ) _private_gettimeofday((TV), (TZ))
# endif
# include <io.h>
/* read() */
# define lseek64 _lseeki64
#endif
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__APPLE__)
...
...
@@ -336,7 +334,7 @@ static dvd_reader_t *DVDOpenCommon( void *priv,
dvd_reader_stream_cb
*
stream_cb
)
{
struct
stat
fileinfo
;
int
ret
,
have_css
,
retval
,
cdir
=
-
1
;
int
ret
,
have_css
,
cdir
=
-
1
;
char
*
dev_name
=
NULL
;
char
*
path
=
NULL
,
*
new_path
=
NULL
,
*
path_copy
=
NULL
;
dvd_reader_t
*
ctx
=
calloc
(
1
,
sizeof
(
*
ctx
));
...
...
@@ -450,6 +448,7 @@ static dvd_reader_t *DVDOpenCommon( void *priv,
/* Resolve any symlinks and get the absolute dir name. */
{
if
(
(
cdir
=
open
(
"."
,
O_RDONLY
)
)
>=
0
)
{
int
retval
;
if
(
chdir
(
path_copy
)
==
-
1
)
{
goto
DVDOpen_error
;
}
...
...
This diff is collapsed.
Click to expand it.