From: Pierre d'Herbemont Date: Mon, 1 Feb 2010 00:34:09 +0000 (+0100) Subject: macosx/framework: Remove this nasty hack, now that core is fixed. X-Git-Tag: 1.1.0-ff~578^2 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=58b047635b79ec2a53e514e2e62218c8e8644ddf;p=vlc macosx/framework: Remove this nasty hack, now that core is fixed. --- diff --git a/projects/macosx/framework/Sources/VLCVideoView.m b/projects/macosx/framework/Sources/VLCVideoView.m index c7488273a2..13c2695b08 100644 --- a/projects/macosx/framework/Sources/VLCVideoView.m +++ b/projects/macosx/framework/Sources/VLCVideoView.m @@ -185,26 +185,13 @@ return stretchesVideo; } -/* This is called by the libvlc module 'minimal_macosx' as soon as there is one +/* This is called by the libvlc module 'minimal_macosx' as soon as there is one * vout available */ - (void)addVoutSubview:(NSView *)aView /* (Scheduled to deletion) */ { - /* This is where the real video comes from */ - if( [[self subviews] count] ) - { - /* XXX: This is a hack until core gets fixed */ - NSUInteger i; - for( i = 0; i < [[self subviews] count]; i++ ) - { - [[[self subviews] objectAtIndex:i] detachFromVout]; - [[[self subviews] objectAtIndex:i] retain]; - [[[self subviews] objectAtIndex:i] removeFromSuperview]; - } - } - [aView setFrame:[self bounds]]; - + [self addSubview:aView]; // TODO: Should we let the media player specify these values?