[vlc-commits] v4l2: fix tuner debug messages
Rémi Denis-Courmont
git at videolan.org
Thu Apr 12 21:40:35 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 12 22:40:12 2012 +0300| [bf44fecdba9a4285215c7c0dbb17361b9b610467] | committer: Rémi Denis-Courmont
v4l2: fix tuner debug messages
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf44fecdba9a4285215c7c0dbb17361b9b610467
---
modules/access/v4l2/video.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 2ed87c6..e85d68c 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -159,7 +159,7 @@ static int SetupTuner (vlc_object_t *obj, int fd,
msg_Dbg (obj, "tuner %s (%"PRIu32") is %s", tuner.name, tuner.index,
typename);
- msg_Dbg (obj, " ranges from %u.%u %sHz to %u.%c %sHz",
+ msg_Dbg (obj, " ranges from %u.%u %sHz to %u.%u %sHz",
(tuner.rangelow * 125) >> 1, (tuner.rangelow & 1) * 5, mult,
(tuner.rangehigh * 125) >> 1, (tuner.rangehigh & 1) * 5,
mult);
@@ -217,9 +217,11 @@ static int SetupTuner (vlc_object_t *obj, int fd,
input->tuner, freq, mult);
return -1;
}
+ msg_Dbg (obj, "tuner %"PRIu32" tuned to frequency %"PRIu32" %sHz",
+ input->tuner, freq, mult);
}
- msg_Dbg (obj, "tuner %"PRIu32" tuned to frequency %"PRIu32" %sHz",
- input->tuner, freq, mult);
+ else
+ msg_Dbg (obj, "tuner not tuned");
return 0;
}
More information about the vlc-commits
mailing list