mirror of https://github.com/mpv-player/mpv
removed stupid checks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25324 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b4052eae79
commit
358717114f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue