summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2015-04-20 21:28:10 +0200
committerThomas Reufer <thomas@reufer.ch>2015-04-21 06:24:23 +0200
commit19c214381b9c006a218e31c6c3e4aaa695e6c98f (patch)
tree644f858df3e2d4f471e7903a52be720119be57b9
parent3830998cf7aea24a8fe0889ff36641ba96ebb290 (diff)
downloadvdr-plugin-rpihddevice-19c214381b9c006a218e31c6c3e4aaa695e6c98f.tar.gz
vdr-plugin-rpihddevice-19c214381b9c006a218e31c6c3e4aaa695e6c98f.tar.bz2
always stop video decoder on SetPlayMode(pmNone)
-rw-r--r--omxdevice.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/omxdevice.c b/omxdevice.c
index ccc2a20..f800c11 100644
--- a/omxdevice.c
+++ b/omxdevice.c
@@ -157,9 +157,7 @@ bool cOmxDevice::SetPlayMode(ePlayMode PlayMode)
{
case pmNone:
FlushStreams(true);
- if (m_hasVideo)
- m_omx->StopVideo();
-
+ m_omx->StopVideo();
m_hasAudio = false;
m_hasVideo = false;
m_videoCodec = cVideoCodec::eInvalid;