summaryrefslogtreecommitdiff
path: root/dxr3device.c
diff options
context:
space:
mode:
authorscop <scop>2005-04-01 18:02:49 +0000
committerscop <scop>2005-04-01 18:02:49 +0000
commite879e3f9315a471f7a4b15dcb28ed6e6f7b60604 (patch)
tree1db7d1bef2de3e27b29edda0e3959a5f0e2afc75 /dxr3device.c
parent20c3aec04404771df566413de4c00c5a9afff7b9 (diff)
downloadvdr-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.c13
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;