From: Rafaël Carré Date: Sat, 29 Sep 2007 11:26:38 +0000 (+0000) Subject: telepathy: 10 calls to the "item-change" callback may be necessary to have the metada... X-Git-Tag: 0.9.0-test0~5329 X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=5f05de85c33da800f870c8c5905e9a58f72a8ac4 telepathy: 10 calls to the "item-change" callback may be necessary to have the metadata available. --- diff --git a/modules/misc/notify/telepathy.c b/modules/misc/notify/telepathy.c index 2c97b7e97f..baacca04e7 100644 --- a/modules/misc/notify/telepathy.c +++ b/modules/misc/notify/telepathy.c @@ -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++; }