[vlc-commits] notify: use proper cast to reduce warning

Jean-Baptiste Kempf git at videolan.org
Sat Aug 16 08:48:19 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Aug 16 08:47:48 2014 +0200| [5e426991eab1f3922a26f8688bbb1e698ae13ad7] | committer: Jean-Baptiste Kempf

notify: use proper cast to reduce warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e426991eab1f3922a26f8688bbb1e698ae13ad7
---

 modules/notify/notify.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/notify/notify.c b/modules/notify/notify.c
index 085b5b1..5ad3247 100644
--- a/modules/notify/notify.c
+++ b/modules/notify/notify.c
@@ -135,7 +135,7 @@ static void Close( vlc_object_t *p_this )
     intf_thread_t   *p_intf = ( intf_thread_t* ) p_this;
     intf_sys_t      *p_sys  = p_intf->p_sys;
 
-    var_DelCallback( pl_Get( p_this ), "activity", ItemChange, p_this );
+    var_DelCallback( pl_Get( p_intf ), "activity", ItemChange, p_this );
 
     if( p_sys->notification )
     {
@@ -284,7 +284,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
 /* libnotify callback, called when the "Next" button is pressed */
 static void Next( NotifyNotification *notification, gchar *psz, gpointer p )
 {
-    vlc_object_t *p_object = (vlc_object_t*)p;
+    intf_thread_t *p_object = (intf_thread_t *)p;
 
     VLC_UNUSED(psz);
     notify_notification_close( notification, NULL );
@@ -294,7 +294,7 @@ static void Next( NotifyNotification *notification, gchar *psz, gpointer p )
 /* libnotify callback, called when the "Previous" button is pressed */
 static void Prev( NotifyNotification *notification, gchar *psz, gpointer p )
 {
-    vlc_object_t *p_object = (vlc_object_t*)p;
+    intf_thread_t *p_object = (intf_thread_t *)p;
 
     VLC_UNUSED(psz);
     notify_notification_close( notification, NULL );



More information about the vlc-commits mailing list