summaryrefslogtreecommitdiff
path: root/dxr3audiodecoder.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-04-16 22:14:39 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-04-16 22:14:39 +0200
commitf3c19fd97ae89aa824196a12681406513f062797 (patch)
tree9f67b27ed6c892620e354388dfc22d875f559ae2 /dxr3audiodecoder.c
parent958f61736cc96385f6418a8a0fb0d8062fe79ced (diff)
downloadvdr-plugin-dxr3-f3c19fd97ae89aa824196a12681406513f062797.tar.gz
vdr-plugin-dxr3-f3c19fd97ae89aa824196a12681406513f062797.tar.bz2
remove redundant check if pFrame is null
Diffstat (limited to 'dxr3audiodecoder.c')
-rw-r--r--dxr3audiodecoder.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dxr3audiodecoder.c b/dxr3audiodecoder.c
index d28fe5c..82898db 100644
--- a/dxr3audiodecoder.c
+++ b/dxr3audiodecoder.c
@@ -166,8 +166,7 @@ void cDxr3AudioDecoder::ac3dts(cDxr3PesFrame *frame, iAudio *audio)
}
audio->write(pFrame->Data() + pesHeaderLength + LPCM_HEADER_LENGTH, pFrame->Count() - pesHeaderLength - 7);
- if (pFrame)
- rbuf.Drop(pFrame);
+ rbuf.Drop(pFrame);
}
}
}