[vlc-devel] commit: DBus : Fix a segfault when access->pf_control is NULL ( Rafaël Carré )
git version control
git at videolan.org
Tue Mar 25 02:26:28 CET 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Mar 25 02:26:21 2008 +0100| [4c8992c9a9669ee8eecf2ee3ca2ee7e9c8b57121]
DBus : Fix a segfault when access->pf_control is NULL
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c8992c9a9669ee8eecf2ee3ca2ee7e9c8b57121
---
modules/control/dbus.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index b53f5d2..cbd6c55 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -992,7 +992,7 @@ static int UpdateCaps( intf_thread_t* p_intf )
{
access_t *p_access = (access_t*)vlc_object_find( p_playlist->p_input,
VLC_OBJECT_ACCESS, FIND_CHILD );
- if( p_access )
+ if( p_access && p_access->pf_control )
{
vlc_bool_t b_can_pause;
if( !access2_Control( p_access, ACCESS_CAN_PAUSE, &b_can_pause ) &&
More information about the vlc-devel
mailing list