[vlc-devel] commit: macosx/framework: Remove this nasty hack, now that core is fixed. ( Pierre d'Herbemont )

git version control git at videolan.org
Mon Feb 1 01:34:44 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Mon Feb  1 01:34:09 2010 +0100| [58b047635b79ec2a53e514e2e62218c8e8644ddf] | committer: Pierre d'Herbemont 

macosx/framework: Remove this nasty hack, now that core is fixed.

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

 projects/macosx/framework/Sources/VLCVideoView.m |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/projects/macosx/framework/Sources/VLCVideoView.m b/projects/macosx/framework/Sources/VLCVideoView.m
index c748827..13c2695 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?




More information about the vlc-devel mailing list