[vlc-commits] macosx: prevent crashes when enabling or changing the marquee string ( close #5991)

Felix Paul Kühne git at videolan.org
Sat Jul 28 16:35:20 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jul 28 11:31:57 2012 -0300| [edee0a568395174b107369624b145f90d069cc1d] | committer: Felix Paul Kühne

macosx: prevent crashes when enabling or changing the marquee string (close #5991)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=edee0a568395174b107369624b145f90d069cc1d
---

 modules/gui/macosx/VideoEffects.m |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/VideoEffects.m b/modules/gui/macosx/VideoEffects.m
index 437e0b2..6d375e4 100644
--- a/modules/gui/macosx/VideoEffects.m
+++ b/modules/gui/macosx/VideoEffects.m
@@ -25,6 +25,7 @@
 #import "intf.h"
 #import <vlc_common.h>
 #import <vlc_modules.h>
+#import <vlc_charset.h>
 #import "VideoEffects.h"
 
 #pragma mark -
@@ -539,7 +540,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
     vlc_object_t *p_filter;
 
     if( p_vout == NULL ) {
-        config_PutPsz( p_intf, psz_name, psz_value );
+        config_PutPsz( p_intf, psz_name, EnsureUTF8(psz_value) );
     } else {
         p_filter = vlc_object_find_name( pl_Get(p_intf), psz_filter );
 
@@ -548,8 +549,8 @@ static VLCVideoEffects *_o_sharedInstance = nil;
             vlc_object_release( p_vout );
             return;
         }
-        var_SetString( p_filter, psz_name, psz_value );
-        config_PutPsz( p_intf, psz_name, psz_value );
+        var_SetString( p_filter, psz_name, EnsureUTF8(psz_value) );
+        config_PutPsz( p_intf, psz_name, EnsureUTF8(psz_value) );
         vlc_object_release( p_vout );
         vlc_object_release( p_filter );
 



More information about the vlc-commits mailing list