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
0a974b87
Commit
0a974b87
authored
Dec 08, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* utf8_fopen for a few more modules refs #880
parent
187982c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
modules/access_filter/dump.c
modules/access_filter/dump.c
+1
-1
modules/visualization/galaktos/preset.c
modules/visualization/galaktos/preset.c
+2
-2
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+4
-3
No files found.
modules/access_filter/dump.c
View file @
0a974b87
...
...
@@ -297,7 +297,7 @@ static void Trigger (access_t *access)
msg_Info
(
access
,
"dumping media to
\"
%s
\"
..."
,
filename
);
newstream
=
fopen
(
filename
,
"wb"
);
newstream
=
utf8_
fopen
(
filename
,
"wb"
);
if
(
newstream
==
NULL
)
{
msg_Err
(
access
,
"cannot create dump file
\"
%s
\"
: %s"
,
filename
,
...
...
modules/visualization/galaktos/preset.c
View file @
0a974b87
...
...
@@ -520,7 +520,7 @@ int load_preset_file(char * pathname, preset_t * preset) {
return
FAILURE
;
/* Open the file corresponding to pathname */
if
((
fs
=
fopen
(
pathname
,
"r"
))
==
0
)
{
if
((
fs
=
utf8_
fopen
(
pathname
,
"r"
))
==
0
)
{
if
(
PRESET_DEBUG
)
printf
(
"load_preset_file: loading of file %s failed!
\n
"
,
pathname
);
return
ERROR
;
}
...
...
@@ -792,7 +792,7 @@ void savePreset(char * filename) {
return
;
/* Open the file corresponding to pathname */
if
((
fs
=
fopen
(
filename
,
"w+"
))
==
0
)
{
if
((
fs
=
utf8_
fopen
(
filename
,
"w+"
))
==
0
)
{
if
(
PRESET_DEBUG
)
printf
(
"savePreset: failed to create filename
\"
%s
\"
!
\n
"
,
filename
);
return
;
}
...
...
src/video_output/vout_intf.c
View file @
0a974b87
...
...
@@ -36,6 +36,7 @@
#include "video_output.h"
#include "vlc_image.h"
#include "vlc_spu.h"
#include "charset.h"
#include <snapshot.h>
...
...
@@ -633,14 +634,14 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
/*
* Did the user specify a directory? If not, path = NULL.
*/
path
=
opendir
(
(
const
char
*
)
val
.
psz_string
);
path
=
utf8_
opendir
(
(
const
char
*
)
val
.
psz_string
);
if
(
path
!=
NULL
)
{
char
*
psz_prefix
=
var_GetString
(
p_vout
,
"snapshot-prefix"
);
if
(
!
psz_prefix
)
psz_prefix
=
strdup
(
"vlcsnap-"
);
closedi
r
(
path
);
vlc_closedir_wrappe
r
(
path
);
if
(
var_GetBool
(
p_vout
,
"snapshot-sequential"
)
==
VLC_TRUE
)
{
int
i_num
=
var_GetInteger
(
p_vout
,
"snapshot-num"
);
...
...
@@ -650,7 +651,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
asprintf
(
&
psz_filename
,
"%s/%s%05d.%s"
,
val
.
psz_string
,
psz_prefix
,
i_num
++
,
format
.
psz_string
);
}
while
(
(
p_file
=
fopen
(
psz_filename
,
"r"
)
)
&&
!
fclose
(
p_file
)
);
while
(
(
p_file
=
utf8_
fopen
(
psz_filename
,
"r"
)
)
&&
!
fclose
(
p_file
)
);
var_SetInteger
(
p_vout
,
"snapshot-num"
,
i_num
);
}
else
...
...
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