Mercurial > mplayer.hg
comparison stream/stream_dvdnav.c @ 24109:4565ffb49fda
Removed uninitialized variable.
author | cehoyos |
---|---|
date | Thu, 23 Aug 2007 23:14:00 +0000 |
parents | 6b5d9e7e4b17 |
children | d261f5109660 |
comparison
equal
deleted
inserted
replaced
24108:51cd49ee92d6 | 24109:4565ffb49fda |
---|---|
353 | 353 |
354 static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { | 354 static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { |
355 struct stream_priv_s* p = (struct stream_priv_s*)opts; | 355 struct stream_priv_s* p = (struct stream_priv_s*)opts; |
356 char *filename; | 356 char *filename; |
357 dvdnav_priv_t *priv; | 357 dvdnav_priv_t *priv; |
358 dvdnav_status_t status; | |
359 | 358 |
360 if(p->device) filename = p->device; | 359 if(p->device) filename = p->device; |
361 else if(dvd_device) filename= dvd_device; | 360 else if(dvd_device) filename= dvd_device; |
362 else filename = DEFAULT_DVD_DEVICE; | 361 else filename = DEFAULT_DVD_DEVICE; |
363 if(!(priv=new_dvdnav_stream(filename))) { | 362 if(!(priv=new_dvdnav_stream(filename))) { |
396 stream->priv=(void*)priv; | 395 stream->priv=(void*)priv; |
397 *file_format = DEMUXER_TYPE_MPEG_PS; | 396 *file_format = DEMUXER_TYPE_MPEG_PS; |
398 | 397 |
399 update_title_len(stream); | 398 update_title_len(stream); |
400 if(!stream->pos) | 399 if(!stream->pos) |
401 mp_msg(MSGT_OPEN,MSGL_ERR, "INIT ERROR: %d, couldn't get init pos %s\r\n", status, dvdnav_err_to_string(priv->dvdnav)); | 400 mp_msg(MSGT_OPEN,MSGL_ERR, "INIT ERROR: couldn't get init pos %s\r\n", dvdnav_err_to_string(priv->dvdnav)); |
402 | 401 |
403 mp_msg(MSGT_OPEN,MSGL_INFO, "Remember to disable MPlayer's cache when playing dvdnav:// streams (adding -nocache to your command line)\r\n"); | 402 mp_msg(MSGT_OPEN,MSGL_INFO, "Remember to disable MPlayer's cache when playing dvdnav:// streams (adding -nocache to your command line)\r\n"); |
404 | 403 |
405 return STREAM_OK; | 404 return STREAM_OK; |
406 } | 405 } |