From 5dade1f5ff0e44d2285027744cfec721e51a326e Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 13 Nov 2007 20:12:36 +0000 Subject: [PATCH] Windows patches for -2 --- audiowin.cc | 12 ++++++++---- videowin.cc | 8 +++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/audiowin.cc b/audiowin.cc index 13f7130..dc01351 100644 --- a/audiowin.cc +++ b/audiowin.cc @@ -342,10 +342,14 @@ bool AudioWin::loadOptionsfromServer(VDR* vdr) bool AudioWin::saveOptionstoServer() { - VDR::getInstance()->configSave("DirectShow", - "AudioFilter",audiofilterlist[audiofilterselected].displayname); - VDR::getInstance()->configSave("DirectShow", - "Mp3AudioFilter",mp3audiofilterlist[mp3audiofilterselected].displayname); + if (audiofilterselected!=-1) { + VDR::getInstance()->configSave("DirectShow", + "AudioFilter",audiofilterlist[audiofilterselected].displayname); + } + if (mp3audiofilterselected!=-1) { + VDR::getInstance()->configSave("DirectShow", + "Mp3AudioFilter",mp3audiofilterlist[mp3audiofilterselected].displayname); + } return true; } diff --git a/videowin.cc b/videowin.cc index 0115fa5..9eeae3e 100644 --- a/videowin.cc +++ b/videowin.cc @@ -306,8 +306,10 @@ bool VideoWin::loadOptionsfromServer(VDR* vdr) bool VideoWin::saveOptionstoServer() { - VDR::getInstance()->configSave("DirectShow", - "VideoFilter",videofilterlist[videofilterselected].displayname); + if (videofilterselected!=-1) { + VDR::getInstance()->configSave("DirectShow", + "VideoFilter",videofilterlist[videofilterselected].displayname); + } return true; } @@ -504,7 +506,7 @@ bool VideoWin::selectVideoFilter(int filter) } bindctx->Release(); delete [] name; - if (success) + if (success || true) { videofilterselected=filter; return true; -- 2.39.5