spark/video: implicitly do StopPicture() on CVideo::Start()

This seems to be what the coolstream code does.
TODO: look out for side effects (in radio mode etc...)
This commit is contained in:
Stefan Seyfried
2015-12-25 19:08:31 +01:00
parent d22660a4a1
commit 18db6acbc2

View File

@@ -287,6 +287,12 @@ int VDec::Start(void)
if (playstate == VIDEO_FREEZED) /* in theory better, but not in practice :-) */ if (playstate == VIDEO_FREEZED) /* in theory better, but not in practice :-) */
fop(ioctl, MPEG_VID_CONTINUE); fop(ioctl, MPEG_VID_CONTINUE);
#endif #endif
/* implicitly do StopPicture() on video->Start() */
if (stillpicture) {
lt_info("%s: stillpicture == true, doing implicit StopPicture()\n", __func__);
stillpicture = false;
Stop(1);
}
playstate = VIDEO_PLAYING; playstate = VIDEO_PLAYING;
fop(ioctl, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX); fop(ioctl, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX);
return fop(ioctl, VIDEO_PLAY); return fop(ioctl, VIDEO_PLAY);