Commit 5f05de85 authored by Rafaël Carré's avatar Rafaël Carré

telepathy: 10 calls to the "item-change" callback may be necessary to have the metadata available.

parent 59a40313
......@@ -169,9 +169,10 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
{
if( newval.i_int != p_intf->p_sys->i_id ) /* "item-change" */
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 )
/* Some variable bitrate inputs call "item-change callbacks each time
* their length is updated, that is several times per second.
* We'll limit the number of changes to 10 per input. */
if( p_intf->p_sys->i_item_changes > 10 )
return VLC_SUCCESS;
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