summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-06-05 08:15:57 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-06-05 08:15:57 +0200
commit6f5450861e8dc8a3104c25b2aba16140197a2f5e (patch)
tree05d025c16e1c3feac756e562d3bbaf1f2fb6d343
parenta9a8b8e6b6d3f49cff1addebb73f2b54b17ff5cf (diff)
downloadvdr-plugin-dxr3-6f5450861e8dc8a3104c25b2aba16140197a2f5e.tar.gz
vdr-plugin-dxr3-6f5450861e8dc8a3104c25b2aba16140197a2f5e.tar.bz2
make gcc happier by fixing some warnings
-rw-r--r--dxr3demuxdevice.c6
-rw-r--r--dxr3multichannelaudio.c8
2 files changed, 8 insertions, 6 deletions
diff --git a/dxr3demuxdevice.c b/dxr3demuxdevice.c
index 669c729..3ed890c 100644
--- a/dxr3demuxdevice.c
+++ b/dxr3demuxdevice.c
@@ -289,7 +289,7 @@ int cDxr3DemuxDevice::DemuxPes(const uint8_t* buf, int length, bool bAc3Dts)
m_synchState == DXR3_DEMUX_SYNCHED) {
m_dxr3Device->SetHorizontalSize(pesFrame->GetHorizontalSize());
m_dxr3Device->SetVerticalSize(pesFrame->GetVerticalSize());
- while (!Poll(100));
+ while (!Poll(100)) {}
cFixedLengthFrame* pTempFrame = m_vBuf.Push(pesFrame->GetPayload(), (int) (pesFrame->GetPayloadLength()), pts, ftVideo);
// TODO: rework me
@@ -362,7 +362,7 @@ int cDxr3DemuxDevice::DemuxPes(const uint8_t* buf, int length, bool bAc3Dts)
m_vBuf.Start();
m_aBuf.Start();
}
- while(!Poll(100));
+ while(!Poll(100)) {}
m_aDecoder.Decode(pesFrame, pts, m_aBuf);
} else {
@@ -507,7 +507,7 @@ int cDxr3DemuxDevice::DemuxAudioPes(const uint8_t* buf, int length)
syncCounter <= 2) {
syncCounter++;
}
- while (!m_aBuf.Poll(100));
+ while (!m_aBuf.Poll(100)) {}
m_aDecoder.DecodeLpcm(pesFrame, 0, m_aBuf);
}
diff --git a/dxr3multichannelaudio.c b/dxr3multichannelaudio.c
index ed4541f..d8cbf69 100644
--- a/dxr3multichannelaudio.c
+++ b/dxr3multichannelaudio.c
@@ -202,8 +202,9 @@ void cAudioEncapsulator::PutData(const uchar *data, int len)
{
if (!muteData)
{
- if (!frameData)
+ if (!frameData) {
DEBUG("PutData() without frame\n");
+ }
while (frameData && len > 0)
{
int l = std::min(len, frameCount);
@@ -594,8 +595,9 @@ cMultichannelAudio::cMultichannelAudio(cRingBufferFrame *rb)
encapsulator = 0;
ringBuffer = rb;
fixed = false;
- if (!ringBuffer)
- DEBUG("multichannel: no ringbuffer!");
+ if (!ringBuffer) {
+ DEBUG("multichannel: no ringbuffer!");
+ }
}
cMultichannelAudio::~cMultichannelAudio()