[vlc-devel] commit: Read the correct type from the vlc value - fixes #1569 ( Rafaël Carré )
git version control
git at videolan.org
Mon May 5 22:09:01 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May 5 22:10:45 2008 +0200| [821a4658d2c5d6b9a6670dc3640c890b71a43805]
Read the correct type from the vlc value - fixes #1569
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=821a4658d2c5d6b9a6670dc3640c890b71a43805
---
modules/control/dbus.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index 481d615..e65ac8d 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -1152,14 +1152,11 @@ static int MarshalStatus( intf_thread_t* p_intf, DBusMessageIter* args,
i_state = 0;
}
- var_Get( p_playlist, "random", &val );
- i_random = val.i_int;
+ i_random = var_CreateGetBool( p_playlist, "random" );
- var_Get( p_playlist, "repeat", &val );
- i_repeat = val.i_int;
+ i_repeat = var_CreateGetBool( p_playlist, "repeat" );
- var_Get( p_playlist, "loop", &val );
- i_loop = val.i_int;
+ i_loop = var_CreateGetBool( p_playlist, "loop" );
if( lock )
PL_UNLOCK;
More information about the vlc-devel
mailing list