Commit 59947987 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: fix crash when open track sync panel while movie is playing

Crash was introduced in 3e73ad2a8ab6d5e50ea80025d364edbe7ead1d1b (subsdelay filter) and
occurs when user or init methods set subsdelay to 0.
(cherry picked from commit fd9f59ec7cbda944c729118302c7434e5696896a)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 64799361
...@@ -409,6 +409,9 @@ static VLCVideoEffects *_o_sharedInstance = nil; ...@@ -409,6 +409,9 @@ static VLCVideoEffects *_o_sharedInstance = nil;
else if( (NSInteger)strstr( psz_string, psz_name ) == NO ) else if( (NSInteger)strstr( psz_string, psz_name ) == NO )
psz_string = (char *)[[NSString stringWithFormat: @"%s:%s", psz_string, psz_name] UTF8String]; psz_string = (char *)[[NSString stringWithFormat: @"%s:%s", psz_string, psz_name] UTF8String];
} else { } else {
if( !psz_string )
return;
psz_parser = strstr( psz_string, psz_name ); psz_parser = strstr( psz_string, psz_name );
if( psz_parser ) if( psz_parser )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment