From 5f05de85c33da800f870c8c5905e9a58f72a8ac4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sat, 29 Sep 2007 11:26:38 +0000 Subject: [PATCH] telepathy: 10 calls to the "item-change" callback may be necessary to have the metadata available. --- modules/misc/notify/telepathy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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++; } -- 2.20.1