diff options
| -rw-r--r-- | omx.c | 1 | ||||
| -rw-r--r-- | ovgosd.c | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -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; @@ -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; } } |
