[MPlayer-cvslog] r25324 - trunk/stream/stream_dvdnav.c

nicodvb subversion at mplayerhq.hu
Sat Dec 8 19:16:02 CET 2007


Author: nicodvb
Date: Sat Dec  8 19:16:02 2007
New Revision: 25324

Log:
removed stupid checks

Modified:
   trunk/stream/stream_dvdnav.c

Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Sat Dec  8 19:16:02 2007
@@ -141,11 +141,7 @@ static void dvdnav_get_highlight (dvdnav
 static int dvdnav_stream_read(dvdnav_priv_t * priv, unsigned char *buf, int *len) {
   int event = DVDNAV_NOP;
 
-  if (!len) return -1;
   *len=-1;
-  if (!priv) return -1;
-  if (!buf) return -1;
-
   if (dvdnav_get_next_block(priv->dvdnav,buf,&event,len)!=DVDNAV_STATUS_OK) {
     mp_msg(MSGT_OPEN,MSGL_V, "Error getting next block from DVD %d (%s)\n",event, dvdnav_err_to_string(priv->dvdnav) );
     *len=-1;



More information about the MPlayer-cvslog mailing list