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
committed by max_10
parent 0d30ab013e
commit ba7a351f59

View File

@@ -268,6 +268,12 @@ int cVideo::Start(void * /*PcrChannel*/, unsigned short /*PcrPid*/, unsigned sho
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);
int res = fop(ioctl, VIDEO_PLAY); int res = fop(ioctl, VIDEO_PLAY);