Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
860b31f8
Commit
860b31f8
authored
Nov 27, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [18046] utf8 dir wrappers for the mkv module
parent
2c002c7f
Changes
1
Hide 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 @
860b31f8
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <codecs.h>
/* BITMAPINFOHEADER, WAVEFORMATEX */
#include <codecs.h>
/* BITMAPINFOHEADER, WAVEFORMATEX */
#include "iso_lang.h"
#include "iso_lang.h"
#include "vlc_meta.h"
#include "vlc_meta.h"
#include "charset.h"
#include <iostream>
#include <iostream>
#include <cassert>
#include <cassert>
...
@@ -1491,16 +1492,16 @@ static int Open( vlc_object_t * p_this )
...
@@ -1491,16 +1492,16 @@ static int Open( vlc_object_t * p_this )
}
}
}
}
struct
dirent
*
p_file_item
;
DIR
*
p_src_dir
=
(
DIR
*
)
utf8_opendir
(
s_path
.
c_str
());
DIR
*
p_src_dir
=
opendir
(
s_path
.
c_str
());
if
(
p_src_dir
!=
NULL
)
if
(
p_src_dir
!=
NULL
)
{
{
while
((
p_file_item
=
(
dirent
*
)
readdir
(
p_src_dir
)))
char
*
psz_file
;
while
((
psz_file
=
(
char
*
)
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
#ifdef WIN32
if
(
!
strcasecmp
(
s_filename
.
c_str
(),
p_demux
->
psz_path
))
if
(
!
strcasecmp
(
s_filename
.
c_str
(),
p_demux
->
psz_path
))
...
@@ -1545,6 +1546,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -1545,6 +1546,7 @@ static int Open( vlc_object_t * p_this )
}
}
}
}
}
}
free
(
psz_file
);
}
}
closedir
(
p_src_dir
);
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