[vlc-commits] dbus: Correctly initialize p_sys
Mirsal Ennaime
git at videolan.org
Tue Jun 7 20:08:01 CEST 2011
vlc | branch: master | Mirsal Ennaime <mirsal at mirsal.fr> | Tue Jun 7 18:11:37 2011 +0200| [cfcb63c30b1c8f5d3e2d6e8870dbdb9041880bbe] | committer: Mirsal Ennaime
dbus: Correctly initialize p_sys
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cfcb63c30b1c8f5d3e2d6e8870dbdb9041880bbe
---
modules/control/dbus/dbus.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index d1ce578..a6d6b90 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -163,17 +163,14 @@ static int Open( vlc_object_t *p_this )
if( !dbus_threads_init_default() )
return VLC_EGENERIC;
- intf_sys_t *p_sys = malloc( sizeof( intf_sys_t ) );
+ intf_sys_t *p_sys = calloc( 1, sizeof( intf_sys_t ) );
if( unlikely(!p_sys) )
return VLC_ENOMEM;
playlist_t *p_playlist;
DBusConnection *p_conn;
- p_sys->b_meta_read = false;
- p_sys->b_dead = false;
- p_sys->p_input = NULL;
p_sys->i_player_caps = PLAYER_CAPS_NONE;
- p_sys->i_playing_state = -1;
+ p_sys->i_playing_state = PLAYBACK_STATE_INVALID;
if( vlc_pipe( p_sys->p_pipe_fds ) )
{
More information about the vlc-commits
mailing list