]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/controls.m
Turkish translation update by Yuksel Yildirim
[vlc] / modules / gui / macosx / controls.m
index 75536d4673548f23fdbb47ae53ceba91ba75ee04..bbd35e275a069b37b90324fb3f098f9dd27aeba4 100644 (file)
             }
             else
             {
-                playlist_t * p_playlist = pl_Yield( VLCIntf );
                 /* Fullscreen state for next time will be saved here too */
                 [o_vout_view toggleFullscreen];
             }
     }
     else if( sender == o_specificTime_ok_btn )
     {
-        input_thread_t * p_input = (input_thread_t *)vlc_object_find( VLCIntf, \
-            VLC_OBJECT_INPUT, FIND_ANYWHERE );
+        input_thread_t * p_input = pl_CurrentInput( VLCIntf );
         if( p_input )
         {
             unsigned int timeInSec = 0;
             input_Control( p_input, INPUT_SET_TIME, (int64_t)(timeInSec * 1000000));
             vlc_object_release( p_input );
         }
+
         [NSApp endSheet: o_specificTime_win];
         [o_specificTime_win close];
     }
     else
     {
-        input_thread_t * p_input = (input_thread_t *)vlc_object_find( VLCIntf, \
-            VLC_OBJECT_INPUT, FIND_ANYWHERE );
+        input_thread_t * p_input = pl_CurrentInput( VLCIntf );
         if( p_input )
         {
             /* we can obviously only do that if an input is available */