When playing continuously, it should unschedule the following tasks,
before continue playing.
testProgs/playCommon.cpp:
void sessionAfterPlaying(void* /*clientData*/) {
if (!playContinuously) {
shutdown(0);
} else {
+ // unschedule these task, since it will be rescheduled by
+ // startPlayingStreams()
+ if (env != NULL) {
+ env->taskScheduler().unscheduleDelayedTask(sessionTimerTask);
+ env->taskScheduler().unscheduleDelayedTask(arrivalCheckTimerTask);
+ env->taskScheduler().unscheduleDelayedTask(interPacketGapCheckTimerTask);
+ env->taskScheduler().unscheduleDelayedTask(qosMeasurementTimerTask);
+ sessionTimerTask = NULL;
+ arrivalCheckTimerTask = NULL;
+ interPacketGapCheckTimerTask = NULL;
+ qosMeasurementTimerTask = NULL;
+ }
+ // reset this, to ensure that checkInterPacketGaps() called by
+ // startPlayingStreams() will not close the session
+ totNumPacketsReceived = ~0;
// We've been asked to play the stream(s) over again:
startPlayingStreams();
}
}
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel