changeset 26374:268f87e940ab

Remove useless checks
author reimar
date Sat, 12 Apr 2008 15:11:03 +0000
parents 700728d4ad3d
children 4319a0b14666
files libmpdemux/demux_audio.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Sat Apr 12 15:09:40 2008 +0000
+++ b/libmpdemux/demux_audio.c	Sat Apr 12 15:11:03 2008 +0000
@@ -150,14 +150,7 @@
 {
   uint8_t preamble[4];
   unsigned int blk_len;
-  stream_t *s = NULL;
-
-  if (!demuxer)
-    return;
-
-  s = demuxer->stream;
-  if (!s)
-    return;
+  stream_t *s = demuxer->stream;
   
   /* file is qualified; skip over the signature bytes in the stream */
   stream_seek (s, 4);