diff options
| author | Thomas Reufer <thomas@reufer.ch> | 2014-10-30 20:18:19 +0100 |
|---|---|---|
| committer | Thomas Reufer <thomas@reufer.ch> | 2014-11-14 23:16:13 +0100 |
| commit | 77a07b1449eb8492abd70befe00ed152a1e68d43 (patch) | |
| tree | 1824eb88a7ec8c915c17f92a8ac95cde51e7a5b3 | |
| parent | 53bfe1d38706b42d6d76a9d14eadcee2c7837620 (diff) | |
| download | vdr-plugin-rpihddevice-77a07b1449eb8492abd70befe00ed152a1e68d43.tar.gz vdr-plugin-rpihddevice-77a07b1449eb8492abd70befe00ed152a1e68d43.tar.bz2 | |
code clean up
| -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; } } |
