summaryrefslogtreecommitdiff
path: root/src/input/media_helper.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-12-05 15:54:56 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-12-05 15:54:56 +0000
commit7958ce62d6ae127ee9b8664c8afae5754063389f (patch)
tree658e11edf004b0ae3ac3114ffe8ed5f8604ccefd /src/input/media_helper.c
parentb529e4b1f1668c03d3cb35c0c742f301b8c415db (diff)
downloadxine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.gz
xine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.bz2
cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued...
CVS patchset: 5844 CVS date: 2003/12/05 15:54:56
Diffstat (limited to 'src/input/media_helper.c')
-rw-r--r--src/input/media_helper.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/input/media_helper.c b/src/input/media_helper.c
index ce8f0d701..86a456b3a 100644
--- a/src/input/media_helper.c
+++ b/src/input/media_helper.c
@@ -79,7 +79,7 @@ static int media_umount_media(const char *device)
#endif /* WIN32 */
}
-int media_eject_media (const char *device) {
+int media_eject_media (xine_t *xine, const char *device) {
#ifndef WIN32
int ret, status;
@@ -127,10 +127,10 @@ int media_eject_media (const char *device) {
#elif defined (__NetBSD__) || defined (__OpenBSD__) || defined (__FreeBSD__)
if (ioctl(fd, CDIOCALLOW) == -1) {
- perror("ioctl(cdromallow)");
+ xprintf(xine, XINE_VERBOSITY_DEBUG, "ioctl(cdromallow): %s\n", strerror(errno));
} else {
if (ioctl(fd, CDIOCEJECT) == -1) {
- perror("ioctl(cdromeject)");
+ xprintf(xine, XINE_VERBOSITY_DEBUG, "ioctl(cdromeject): %s\n", strerror(errno));
}
}
@@ -138,7 +138,8 @@ int media_eject_media (const char *device) {
close(fd);
} else {
- printf("input_dvd: Device %s failed to open during eject calls\n",device);
+ xprintf(xine, XINE_VERBOSITY_LOG,
+ _("input_dvd: Device %s failed to open during eject calls\n"), device);
}
return 1;
#else