[vlc-devel] commit: notify: less includes. ( Rémi Duraffort )
git version control
git at videolan.org
Wed Feb 25 19:47:51 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Feb 25 13:22:32 2009 +0100| [441e26094df4feb354cb2c9aaf63d5a5ce90cef3] | committer: Rémi Duraffort
notify: less includes.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=441e26094df4feb354cb2c9aaf63d5a5ce90cef3
---
modules/misc/notify/notify.c | 2 --
modules/misc/notify/telepathy.c | 10 ++++------
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/modules/misc/notify/notify.c b/modules/misc/notify/notify.c
index a94911c..643b55b 100644
--- a/modules/misc/notify/notify.c
+++ b/modules/misc/notify/notify.c
@@ -32,9 +32,7 @@
#include <vlc_plugin.h>
#include <vlc_interface.h>
#include <vlc_playlist.h>
-#include <vlc_meta.h>
-#include <errno.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libnotify/notify.h>
diff --git a/modules/misc/notify/telepathy.c b/modules/misc/notify/telepathy.c
index f2fff32..a18687e 100644
--- a/modules/misc/notify/telepathy.c
+++ b/modules/misc/notify/telepathy.c
@@ -1,7 +1,7 @@
/*****************************************************************************
* telepathy.c : changes Telepathy Presence information using MissionControl
*****************************************************************************
- * Copyright © 2007 the VideoLAN team
+ * Copyright © 2007-2009 the VideoLAN team
* $Id$
*
* Author: Rafaël Carré <funman at videoanorg>
@@ -32,9 +32,9 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_interface.h>
-#include <vlc_meta.h>
#include <vlc_playlist.h>
#include <vlc_strings.h>
+
#include <dbus/dbus.h>
/*****************************************************************************
@@ -94,7 +94,6 @@ static int Open( vlc_object_t *p_this )
{
intf_thread_t *p_intf = (intf_thread_t *)p_this;
playlist_t *p_playlist;
- DBusConnection *p_conn;
DBusError error;
p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
@@ -103,8 +102,8 @@ static int Open( vlc_object_t *p_this )
/* connect to the session bus */
dbus_error_init( &error );
- p_conn = dbus_bus_get( DBUS_BUS_SESSION, &error );
- if( !p_conn )
+ p_intf->p_sys->p_conn = dbus_bus_get( DBUS_BUS_SESSION, &error );
+ if( !p_intf->p_sys->p_conn )
{
msg_Err( p_this, "Failed to connect to the DBus session daemon: %s",
error.message );
@@ -112,7 +111,6 @@ static int Open( vlc_object_t *p_this )
free( p_intf->p_sys );
return VLC_EGENERIC;
}
- p_intf->p_sys->p_conn = p_conn;
p_intf->p_sys->psz_format = config_GetPsz( p_intf, "telepathy-format" );
if( !p_intf->p_sys->psz_format )
More information about the vlc-devel
mailing list