Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
03e6fec2
Commit
03e6fec2
authored
Nov 25, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv: use (open|read)dir wrappers
parent
9abfe146
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+7
-5
No files found.
modules/demux/mkv.cpp
View file @
03e6fec2
...
...
@@ -38,6 +38,7 @@
#include <codecs.h>
/* BITMAPINFOHEADER, WAVEFORMATEX */
#include "iso_lang.h"
#include "vlc_meta.h"
#include "charset.h"
#include <iostream>
#include <cassert>
...
...
@@ -1491,16 +1492,16 @@ static int Open( vlc_object_t * p_this )
}
}
struct
dirent
*
p_file_item
;
DIR
*
p_src_dir
=
opendir
(
s_path
.
c_str
());
DIR
*
p_src_dir
=
utf8_opendir
(
s_path
.
c_str
());
if
(
p_src_dir
!=
NULL
)
{
while
((
p_file_item
=
(
dirent
*
)
readdir
(
p_src_dir
)))
char
*
psz_file
;
while
((
psz_file
=
utf8_readdir
(
p_src_dir
))
!=
NULL
)
{
if
(
strlen
(
p
_file_item
->
d_nam
e
)
>
4
)
if
(
strlen
(
p
sz_fil
e
)
>
4
)
{
s_filename
=
s_path
+
DIRECTORY_SEPARATOR
+
p
_file_item
->
d_nam
e
;
s_filename
=
s_path
+
DIRECTORY_SEPARATOR
+
p
sz_fil
e
;
#ifdef WIN32
if
(
!
strcasecmp
(
s_filename
.
c_str
(),
p_demux
->
psz_path
))
...
...
@@ -1545,6 +1546,7 @@ static int Open( vlc_object_t * p_this )
}
}
}
free
(
psz_file
);
}
closedir
(
p_src_dir
);
}
...
...
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