[vlc-devel] commit: Dynamic overlay: paths from VLC variables, need utf8_open ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Oct 17 22:51:08 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 23:34:50 2009 +0300| [6a292215192d4b6e1e586fb54c16be7989b059f1] | committer: Rémi Denis-Courmont
Dynamic overlay: paths from VLC variables, need utf8_open
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a292215192d4b6e1e586fb54c16be7989b059f1
---
.../video_filter/dynamicoverlay/dynamicoverlay.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/video_filter/dynamicoverlay/dynamicoverlay.c b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
index 016ecb0..00536ed 100644
--- a/modules/video_filter/dynamicoverlay/dynamicoverlay.c
+++ b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
@@ -34,6 +34,7 @@
#include <vlc_vout.h>
#include <vlc_filter.h>
#include <vlc_osd.h>
+#include <vlc_charset.h>
#include <ctype.h>
#include <fcntl.h>
@@ -170,7 +171,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
vlc_mutex_lock( &p_sys->lock );
if( p_sys->i_inputfd == -1 )
{
- p_sys->i_inputfd = open( p_sys->psz_inputfile, O_RDONLY | O_NONBLOCK );
+ p_sys->i_inputfd = utf8_open( p_sys->psz_inputfile, O_RDONLY | O_NONBLOCK );
if( p_sys->i_inputfd == -1 )
{
msg_Warn( p_filter, "Failed to grab input file: %s (%m)",
@@ -185,7 +186,7 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
if( p_sys->i_outputfd == -1 )
{
- p_sys->i_outputfd = open( p_sys->psz_outputfile,
+ p_sys->i_outputfd = utf8_open( p_sys->psz_outputfile,
O_WRONLY | O_NONBLOCK );
if( p_sys->i_outputfd == -1 )
{
More information about the vlc-devel
mailing list