]> git.sesse.net Git - vlc/commitdiff
notify: use proper cast to reduce warning
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 16 Aug 2014 06:47:48 +0000 (08:47 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 16 Aug 2014 06:47:48 +0000 (08:47 +0200)
modules/notify/notify.c

index 085b5b14e1699f4c27e1530e3a5592166b5bbfdf..5ad3247d92c2dffea3ca92c10a6e73b440425164 100644 (file)
@@ -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 );