From: Darren S. <ds...@us...> - 2005-12-12 20:43:55
|
Update of /cvsroot/xine/gnome-xine/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21447/src Modified Files: key_events.c ui.c Log Message: Minor JS return value cleanup. Index: key_events.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/key_events.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -r1.91 -r1.92 --- key_events.c 10 Nov 2005 22:56:50 -0000 1.91 +++ key_events.c 12 Dec 2005 20:43:44 -0000 1.92 @@ -1159,7 +1159,7 @@ event.type = kb_xine_event_lookup (NULL, evstr); if (!event.type) - return JS_FALSE; + return JS_TRUE; if (event.type != -1) { Index: ui.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/ui.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- ui.c 5 Dec 2005 01:14:35 -0000 1.35 +++ ui.c 12 Dec 2005 20:43:44 -0000 1.36 @@ -477,32 +477,30 @@ jsval *argv, jsval *rval) { se_t *se = (se_t *) JS_GetContextPrivate(cx); - *rval = JSVAL_FALSE; se_log_fncall ("<control>.revert"); se_argc_check (0, "<control>.revert"); if (engine_mutex_trylock (se)) - return JS_TRUE; + return JS_FALSE; ui_revert_control_adjustment (ui_lookup_js_obj (obj)); pthread_mutex_unlock (&engine_lock); - return JS_TRUE; + return JS_FALSE; } static JSBool js_control_reset (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { se_t *se = (se_t *) JS_GetContextPrivate(cx); - *rval = JSVAL_FALSE; se_log_fncall ("<control>.reset"); se_argc_check (0, "<control>.reset"); if (engine_mutex_trylock (se)) - return JS_TRUE; + return JS_FALSE; ui_clear_control_adjustment (ui_lookup_js_obj (obj)); pthread_mutex_unlock (&engine_lock); - return JS_TRUE; + return JS_FALSE; } /* Boolean properties */ |