New video stream never reset, if buffer full.

This commit is contained in:
Johns 2011-12-23 20:20:55 +01:00
parent 06fddc206e
commit 34c72d08b3
1 changed files with 1 additions and 0 deletions

View File

@ -519,6 +519,7 @@ int PlayVideo(const uint8_t * data, int size)
Debug(3, "video: new stream %d\n", GetMsTicks() - VideoSwitch);
// FIXME: hack to test results
if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX - 1) {
NewVideoStream = 0;
return 0;
}
VideoNextPacket(CODEC_ID_NONE);