telepathy: fixes [22301]. '-' is forbidden in variable names.
authorRafaël Carré <funman@videolan.org>
Fri, 28 Sep 2007 21:16:40 +0000 (21:16 +0000)
committerRafaël Carré <funman@videolan.org>
Fri, 28 Sep 2007 21:16:40 +0000 (21:16 +0000)
modules/misc/notify/telepathy.c

index 6d093ad..2c97b7e 100644 (file)
@@ -40,7 +40,7 @@ struct intf_sys_t
     char            *psz_format;
     DBusConnection  *p_conn;
     int             i_id;
-    int             i_item-changes;
+    int             i_item_changes;
 };
 
 /*****************************************************************************
@@ -163,7 +163,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     if( !strncmp( "playlist-current", psz_var, 16 ) )
     { /* stores the current input item id */
         p_intf->p_sys->i_id = newval.i_int;
-        p_intf->p_sys->i_item-changes = 0;
+        p_intf->p_sys->i_item_changes = 0;
     }
     else
     {
@@ -171,9 +171,9 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
             return VLC_SUCCESS;
         /* some variable bitrate inputs call "item-change callbacks each time
          * their length is updated, that is several times per second. */
-        if( p_intf->p_sys->i_item-changes > 5 )
+        if( p_intf->p_sys->i_item_changes > 5 )
             return VLC_SUCCESS;
-        p_intf->p_sys->i_item-changes++;
+        p_intf->p_sys->i_item_changes++;
     }