DBus : Fix a segfault when access->pf_control is NULL
authorRafaël Carré <funman@videolan.org>
Tue, 25 Mar 2008 01:26:21 +0000 (02:26 +0100)
committerRafaël Carré <funman@videolan.org>
Tue, 25 Mar 2008 01:26:21 +0000 (02:26 +0100)
modules/control/dbus.c

index b53f5d2..cbd6c55 100644 (file)
@@ -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 ) &&