[vlc-devel] commit: WinCE: remove dummy locking ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Mar 17 20:02:45 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 17 20:54:29 2009 +0200| [31b183e8b59b99a6632462ba1bebc40607feb714] | committer: Rémi Denis-Courmont 

WinCE: remove dummy locking

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

 modules/gui/wince/interface.cpp |    3 ---
 modules/gui/wince/timer.cpp     |    6 ------
 2 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/modules/gui/wince/interface.cpp b/modules/gui/wince/interface.cpp
index b97e766..8633fbe 100644
--- a/modules/gui/wince/interface.cpp
+++ b/modules/gui/wince/interface.cpp
@@ -733,7 +733,6 @@ void Interface::OnVideoOnTop( void )
 
 void Interface::OnSliderUpdate( int wp )
 {
-    vlc_mutex_lock( &p_intf->change_lock );
     input_thread_t *p_input = p_intf->p_sys->p_input;
 
     int dwPos = SendMessage( hwndSlider, TBM_GETPOS, 0, 0 );
@@ -770,8 +769,6 @@ void Interface::OnSliderUpdate( int wp )
                          (LPARAM)_FROMMB(psz_time) );
         }
     }
-
-    vlc_mutex_unlock( &p_intf->change_lock );
 }
 
 void Interface::OnChange( int wp )
diff --git a/modules/gui/wince/timer.cpp b/modules/gui/wince/timer.cpp
index 2955f42..b7da9e9 100644
--- a/modules/gui/wince/timer.cpp
+++ b/modules/gui/wince/timer.cpp
@@ -90,8 +90,6 @@ void Timer::Notify( void )
     vlc_value_t val;
     char *shortname;
 
-    vlc_mutex_lock( &p_intf->change_lock );
-
     /* Update the input */
     if( p_intf->p_sys->p_input == NULL )
     {
@@ -219,14 +217,10 @@ void Timer::Notify( void )
 
     if( !vlc_object_alive( p_intf ) )
     {
-        vlc_mutex_unlock( &p_intf->change_lock );
-
         /* Prepare to die, young Skywalker */
 /*        p_main_interface->Close(TRUE);*/
         return;
     }
-
-    vlc_mutex_unlock( &p_intf->change_lock );
 }
 
 /*****************************************************************************




More information about the vlc-devel mailing list