]> git.sesse.net Git - vlc/commitdiff
macosx/framework: Remove this nasty hack, now that core is fixed.
authorPierre d'Herbemont <pdherbemont@free.fr>
Mon, 1 Feb 2010 00:34:09 +0000 (01:34 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Mon, 1 Feb 2010 00:34:45 +0000 (01:34 +0100)
projects/macosx/framework/Sources/VLCVideoView.m

index c7488273a26a5db4035d9313301361a78a13b6c5..13c2695b083949b3b103b1a357f7030062466e79 100644 (file)
     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?