From 392689a404398eb48005f519b187341fd1f91dec Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Tue, 26 Jan 2010 21:55:45 +0000 Subject: =?UTF-8?q?Convert=20xine=5Flog=20=E2=86=92=20xprintf.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/input/input_v4l2.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/input/input_v4l2.c b/src/input/input_v4l2.c index fb27db5dc..255b1f17c 100644 --- a/src/input/input_v4l2.c +++ b/src/input/input_v4l2.c @@ -107,8 +107,8 @@ static int v4l2_input_open(input_plugin_t *this_gen) { ret = v4l2_ioctl(this->fd, VIDIOC_QUERYCAP, &(this->cap)); if (ret < 0) { - xine_log (this->stream->xine, XINE_LOG_MSG, - LOG_MODULE": %s: %s\n", _("capability query failed"), strerror (-ret)); + xprintf (this->stream->xine, XINE_VERBOSITY_LOG, + LOG_MODULE": capability query failed: %s\n", strerror (-ret)); return 0; } if (this->cap.capabilities & V4L2_CAP_VIDEO_CAPTURE) { @@ -124,19 +124,19 @@ static int v4l2_input_open(input_plugin_t *this_gen) { return 1; } else { /* TODO: Fallbacks */ - xine_log (this->stream->xine, XINE_LOG_MSG, - LOG_MODULE": %s\n", _("video streaming setup failed")); + xprintf (this->stream->xine, XINE_VERBOSITY_LOG, + LOG_MODULE": video streaming setup failed\n"); return 0; } } else { /* TODO: Radio streaming */ - xine_log (this->stream->xine, XINE_LOG_MSG, - LOG_MODULE": %s\n", _("sorry, only video is supported for now")); + xprintf (this->stream->xine, XINE_VERBOSITY_LOG, + LOG_MODULE": sorry, only video is supported for now\n"); return 0; } } else { - xine_log (this->stream->xine, XINE_LOG_MSG, - LOG_MODULE": %s\n", _("device doesn't support streaming - prod the author to support the other methods")); + xprintf (this->stream->xine, XINE_VERBOSITY_LOG, + LOG_MODULE": device doesn't support streaming - prod the author to support the other methods\n"); return 0; } } else { @@ -418,8 +418,8 @@ static input_plugin_t *v4l2_class_get_instance(input_class_t *gen_cls, xine_stre this->radio = NULL; lprintf("Ready to read!\n"); - xine_log (this->stream->xine, XINE_LOG_MSG, - LOG_MODULE": %s\n", _("WARNING: this plugin is not of release quality")); + xprintf (this->stream->xine, XINE_VERBOSITY_NONE, + LOG_MODULE": WARNING: this plugin is not of release quality\n"); return &this->input_plugin; } -- cgit v1.2.3