PROP_LAST
};
-static const float update_interval_factor[] = { 1, 0.5, 1.5, 3 };
-
#define DEFAULT_FRAGMENTS_CACHE 3
#define DEFAULT_FAILED_COUNT 3
#define DEFAULT_BITRATE_LIMIT 0.8
* 0.5 for the first attempt, 1.5 for the second, and 3.0 thereafter."
*/
count = demux->client->update_failed_count;
- if (count < 3)
- update_factor = update_interval_factor[count];
+ if (count == 0)
+ update_factor = 1.0;
else
- update_factor = update_interval_factor[3];
+ update_factor = 0.5;
/* schedule the next update using the target duration field of the
* playlist */