[MPlayer-cvslog] r26406 - trunk/libmpdemux/demux_audio.c

reimar subversion at mplayerhq.hu
Sat Apr 12 17:11:03 CEST 2008


Author: reimar
Date: Sat Apr 12 17:11:03 2008
New Revision: 26406

Log:
Remove useless checks


Modified:
   trunk/libmpdemux/demux_audio.c

Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c	(original)
+++ trunk/libmpdemux/demux_audio.c	Sat Apr 12 17:11:03 2008
@@ -150,14 +150,7 @@ get_flac_metadata (demuxer_t* demuxer)
 {
   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);



More information about the MPlayer-cvslog mailing list