summaryrefslogtreecommitdiff
path: root/src/input/media_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/media_helper.c')
-rw-r--r--src/input/media_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/media_helper.c b/src/input/media_helper.c
index 2c61cdb6a..da30783b0 100644
--- a/src/input/media_helper.c
+++ b/src/input/media_helper.c
@@ -93,7 +93,7 @@ int media_eject_media (xine_t *xine, const char *device)
#else
- int ret, status, fd;
+ int fd;
/* printf("input_dvd: Eject Device %s current device %s opened=%d handle=%p trying...\n",device, this->current_dvd_device, this->opened, this->dvdnav); */
media_umount_media(device);
@@ -102,6 +102,7 @@ int media_eject_media (xine_t *xine, const char *device)
if ((fd = open (device, O_RDONLY|O_NONBLOCK)) > -1) {
#if defined (__linux__)
+ int ret, status;
if((status = ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT)) > 0) {
switch(status) {