diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-08 18:16:02 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-08 18:16:02 +0000 |
commit | 358717114f8a1bb726f64a32258d23fce52274b7 (patch) | |
tree | 3a76b34f7bddc8b820a33eb21ddfd843e3017b2b /stream | |
parent | b4052eae795b71b2f3127467a4aefb91569ca3a2 (diff) |
removed stupid checks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25324 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_dvdnav.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 2c46389370..aaf3c5a690 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -141,11 +141,7 @@ static void dvdnav_get_highlight (dvdnav_priv_t *priv, int display_mode) { 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; |