MacOSX/Framework/VLCMediaPlayer.m: Don't put code that should be in libvlc in the...
[vlc.git] / extras / MacOSX / Framework / Sources / VLCMediaPlayer.m
index 3715099..30a79ad 100644 (file)
@@ -402,15 +402,6 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
         if (media && [media compare:value] == NSOrderedSame)
             return;
         
         if (media && [media compare:value] == NSOrderedSame)
             return;
         
-        BOOL wasPlaying;
-        if (wasPlaying = [self isPlaying])
-        {
-            [self pause];
-//            // TODO: Should we wait until it stops playing?
-//            while ([self isPlaying])
-//                usleep(1000);
-        }
-        
         [media release];
         media = [value retain];
 
         [media release];
         media = [value retain];
 
@@ -475,7 +466,7 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
          * and tries to recontact us on the main thread */
         /* FIXME: to do this properly we need to do some locking. We may want 
          * to move that to libvlc */
          * and tries to recontact us on the main thread */
         /* FIXME: to do this properly we need to do some locking. We may want 
          * to move that to libvlc */
-        [self performSelectorInBackground:@selector(pause) withObject:nil];
+        [self performSelectorInBackground:@selector(stop) withObject:nil];
         return;
     }
 
         return;
     }