From 43544a7b01d34543a9f54b111bb627a8a39a03e4 Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Sun, 4 Nov 2012 17:08:10 +0100 Subject: [PATCH] Some other preparations for dynamic video mode change --- videoomx.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/videoomx.cc b/videoomx.cc index 07f983d..8512ffd 100644 --- a/videoomx.cc +++ b/videoomx.cc @@ -632,14 +632,16 @@ int VideoOMX::sync() } void VideoOMX::interlaceSwitch4Demux() { - return; + return ; Demuxer *demux=Demuxer::getInstance(); if ( (outputinterlaced && !demux->getInterlaced()) || (!outputinterlaced && demux->getInterlaced())) { if (hdmi && (demux->getHorizontalSize()>720 || demux->getInterlaced() )) { // only switch if hdmi and HD or interlaced SD material Log::getInstance()->log("Video", Log::NOTICE, "switch interlacing %d",demux->getInterlaced()); Osd::getInstance()->shutdown(); + OMX_Deinit(); selectVideoMode(demux->getInterlaced()); + OMX_Init(); Osd::getInstance()->restore(); Osd::getInstance()->init((void*)""); BoxStack::getInstance()->redrawAllBoxes(); -- 2.39.5