diff options
author | scop <scop> | 2005-04-01 18:02:49 +0000 |
---|---|---|
committer | scop <scop> | 2005-04-01 18:02:49 +0000 |
commit | e879e3f9315a471f7a4b15dcb28ed6e6f7b60604 (patch) | |
tree | 1db7d1bef2de3e27b29edda0e3959a5f0e2afc75 /dxr3device.c | |
parent | 20c3aec04404771df566413de4c00c5a9afff7b9 (diff) | |
download | vdr-plugin-dxr3-e879e3f9315a471f7a4b15dcb28ed6e6f7b60604.tar.gz vdr-plugin-dxr3-e879e3f9315a471f7a4b15dcb28ed6e6f7b60604.tar.bz2 |
Apply fix for no sound with MP3 plugin from Antti Järvinen.
Diffstat (limited to 'dxr3device.c')
-rw-r--r-- | dxr3device.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dxr3device.c b/dxr3device.c index 3418f33..bd75fd6 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -384,11 +384,20 @@ int cDxr3Device::PlayVideo(const uchar *Data, int Length) if (m_strBuf.length()) { m_strBuf.append((const char*)Data, Length); - retLength = m_DemuxDevice.DemuxPes((const uint8_t*)m_strBuf.data(), m_strBuf.length(), true); + if (m_PlayMode == pmAudioOnly) { + retLength = m_DemuxDevice.DemuxAudioPes((const uint8_t*)m_strBuf.data(), m_strBuf.length()); + } else { + retLength = m_DemuxDevice.DemuxPes((const uint8_t*)m_strBuf.data(), m_strBuf.length(), true); + } + } else { - retLength = m_DemuxDevice.DemuxPes((const uint8_t*)Data, Length, true); + if (m_PlayMode == pmAudioOnly) { + retLength = m_DemuxDevice.DemuxAudioPes((const uint8_t*)Data, Length); + } else { + retLength = m_DemuxDevice.DemuxPes((const uint8_t*)Data, Length, true); + } } Length -= retLength; |