SAP streams list constantly refreshing
Posted: 18 Aug 2011 16:06
I have a list of about 90 channels multicasted in the network. When Itry to use SAP announcement instead of playlist in file, I get constantly refreshing playlist with items shuffling here and there. Search on this forum shows that the problem is not new, see viewtopic.php?f=2&t=88020&hilit=sap and viewtopic.php?f=14&t=74301
Looking into the code the problem is in modules/services_discovery/sap.c in function Run, specifically in this code:
When I change part of the condition from to everything is fixed and SAP list is rock solid.
Can this number be configurable for those of us who hit this problem?
Looking into the code the problem is in modules/services_discovery/sap.c in function Run, specifically in this code:
Code: Select all
/* Remove the annoucement, if the last announcement was 1 hour ago
* or if the last packet emitted was 3 times the average time
* between two packets */
if( ( p_announce->i_period_trust > 5 && i_last_period > 3 * p_announce->i_period ) ||
i_last_period > i_timeout )
{
RemoveAnnounce( p_sd, p_announce );
}
else ...
Code: Select all
i_last_period > 3 * p_announce->i_period
Code: Select all
i_last_period > 30 * p_announce->i_period
Can this number be configurable for those of us who hit this problem?