summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--omx.c1
-rw-r--r--ovgosd.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/omx.c b/omx.c
index b5be01c..296bf16 100644
--- a/omx.c
+++ b/omx.c
@@ -946,7 +946,6 @@ void cOmx::SetVideoDecoderExtraBuffers(int extraBuffers)
int cOmx::SetupAudioRender(cAudioCodec::eCodec outputFormat, int channels,
cRpiAudioPort::ePort audioPort, int samplingRate, int frameSize)
{
- ELOG("%d", frameSize);
OMX_AUDIO_PARAM_PORTFORMATTYPE format;
OMX_INIT_STRUCT(format);
format.nPortIndex = 100;
diff --git a/ovgosd.c b/ovgosd.c
index d8892d2..d5392f2 100644
--- a/ovgosd.c
+++ b/ovgosd.c
@@ -194,7 +194,7 @@ public:
Start();
}
- ~cOvg()
+ virtual ~cOvg()
{
Cancel(-1);
DoCmd(new cOvgReset());
@@ -303,7 +303,9 @@ protected:
if (cmd)
{
- reset = !cmd->Execute(display, surface, width, height);
+ if (!cmd->Execute(display, surface, width, height))
+ reset = true;
+
delete cmd;
}
}