[Mplayerplug-in-cvs] mplayerplug-in/Source plugin.cpp,1.63,1.64
Brought to you by:
kdekorte
From: Kevin D. <kde...@us...> - 2004-03-17 00:44:52
|
Update of /cvsroot/mplayerplug-in/mplayerplug-in/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25811/Source Modified Files: plugin.cpp Log Message: Lock the state changes Index: plugin.cpp =================================================================== RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin.cpp,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** plugin.cpp 16 Mar 2004 22:03:12 -0000 1.63 --- plugin.cpp 17 Mar 2004 00:35:30 -0000 1.64 *************** *** 1263,1269 **** int lstate; lstate = js_state; js_state = JS_STATE_SCANFORWARD; - pthread_mutex_lock(&control_mutex); if (DEBUG) printf("sending FastForward\n"); --- 1263,1269 ---- int lstate; + pthread_mutex_lock(&control_mutex); lstate = js_state; js_state = JS_STATE_SCANFORWARD; if (DEBUG) printf("sending FastForward\n"); *************** *** 1273,1278 **** if (paused == 1) sendCommand(this, "pause\n"); - pthread_mutex_unlock(&control_mutex); js_state = lstate; } --- 1273,1278 ---- if (paused == 1) sendCommand(this, "pause\n"); js_state = lstate; + pthread_mutex_unlock(&control_mutex); } *************** *** 1281,1287 **** int lstate; lstate = js_state; js_state = JS_STATE_SCANREVERSE; - pthread_mutex_lock(&control_mutex); if (DEBUG) printf("sending FastReverse\n"); --- 1281,1287 ---- int lstate; + pthread_mutex_lock(&control_mutex); lstate = js_state; js_state = JS_STATE_SCANREVERSE; if (DEBUG) printf("sending FastReverse\n"); *************** *** 1291,1296 **** if (paused == 1) sendCommand(this, "pause\n"); - pthread_mutex_unlock(&control_mutex); js_state = lstate; } --- 1291,1296 ---- if (paused == 1) sendCommand(this, "pause\n"); js_state = lstate; + pthread_mutex_unlock(&control_mutex); } |