Commit cf4eaf99 authored by Rafaël Carré's avatar Rafaël Carré

telepathy: fixes [22301]. '-' is forbidden in variable names.

parent d6bdaf03
...@@ -40,7 +40,7 @@ struct intf_sys_t ...@@ -40,7 +40,7 @@ struct intf_sys_t
char *psz_format; char *psz_format;
DBusConnection *p_conn; DBusConnection *p_conn;
int i_id; 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, ...@@ -163,7 +163,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
if( !strncmp( "playlist-current", psz_var, 16 ) ) if( !strncmp( "playlist-current", psz_var, 16 ) )
{ /* stores the current input item id */ { /* stores the current input item id */
p_intf->p_sys->i_id = newval.i_int; 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 else
{ {
...@@ -171,9 +171,9 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var, ...@@ -171,9 +171,9 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
return VLC_SUCCESS; return VLC_SUCCESS;
/* some variable bitrate inputs call "item-change callbacks each time /* some variable bitrate inputs call "item-change callbacks each time
* their length is updated, that is several times per second. */ * 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; return VLC_SUCCESS;
p_intf->p_sys->i_item-changes++; p_intf->p_sys->i_item_changes++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment