From ee7016f88dc10252b81bdd588a6201e6b0abb430 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Fri, 25 Dec 2015 19:08:31 +0100 Subject: [PATCH] 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...) Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/ba7a351f59c04dabae9572901acec38c60ed6735 Author: Stefan Seyfried Date: 2015-12-25 (Fri, 25 Dec 2015) ------------------ This commit was generated by Migit --- libspark/video.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libspark/video.cpp b/libspark/video.cpp index a0f0e87..71b2351 100644 --- a/libspark/video.cpp +++ b/libspark/video.cpp @@ -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 :-) */ fop(ioctl, MPEG_VID_CONTINUE); #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; fop(ioctl, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_DEMUX); int res = fop(ioctl, VIDEO_PLAY);