Commit c878a14a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

cdrom.c: code cosmetic and includes removal

parent 034e01d6
...@@ -46,15 +46,13 @@ ...@@ -46,15 +46,13 @@
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_ARPA_INET_H #include <limits.h>
# include <arpa/inet.h>
#endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_access.h> #include <vlc_access.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include <vlc_fs.h> #include <vlc_fs.h>
#include <limits.h> #include <vlc_meta.h>
#if defined( SYS_BSDI ) #if defined( SYS_BSDI )
# include <dvd.h> # include <dvd.h>
...@@ -141,7 +139,6 @@ exit_free: ...@@ -141,7 +139,6 @@ exit_free:
#include "cdrom_internals.h" #include "cdrom_internals.h"
#include "cdrom.h" #include "cdrom.h"
#include <vlc_meta.h>
/***************************************************************************** /*****************************************************************************
* ioctl_Open: Opens a VCD device or file and returns an opaque handle * ioctl_Open: Opens a VCD device or file and returns an opaque handle
...@@ -821,7 +818,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev, ...@@ -821,7 +818,7 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
msg_Dbg( p_this,"guessing vcd image file: %s", psz_vcdfile ); msg_Dbg( p_this,"guessing vcd image file: %s", psz_vcdfile );
p_vcddev->i_vcdimage_handle = vlc_open( psz_vcdfile, p_vcddev->i_vcdimage_handle = vlc_open( psz_vcdfile,
O_RDONLY | O_NONBLOCK | O_BINARY ); O_RDONLY | O_NONBLOCK | O_BINARY );
while( fgets( line, 1024, cuefile ) && !b_found ) while( fgets( line, 1024, cuefile ) && !b_found )
{ {
/* We have a cue file, but no valid vcd file yet */ /* We have a cue file, but no valid vcd file yet */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment