summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-24 20:42:15 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-24 20:42:15 +0000
commit7132e7d85232e99c7f856eb5fbbdb9e9af3fc5ec (patch)
treeeebb2b9f7f00389ce6a1165ef8b4fc1bb710c299 /stream
parent89600cd4cada025cc153e19d2da472f61b212499 (diff)
downloadmpv-7132e7d85232e99c7f856eb5fbbdb9e9af3fc5ec.tar.bz2
mpv-7132e7d85232e99c7f856eb5fbbdb9e9af3fc5ec.tar.xz
Make output messages of frequency selection code more useful by
providing additional information like requested frequency and found nearest fequency/channel. patch from Laurent laurent dot aml at gmail dot com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27661 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/tvi_dshow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c
index abfd0b53d0..2d6f2ff20b 100644
--- a/stream/tvi_dshow.c
+++ b/stream/tvi_dshow.c
@@ -1028,7 +1028,7 @@ static HRESULT set_nearest_freq(priv_t * priv, long lFreq)
TunerInputType tunerInput;
long lInput;
- mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: set_nearest_freq called\n");
+ mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: set_nearest_freq called: %ld\n", lFreq);
if(priv->freq_table_len == -1 && !priv->freq_table) {
hr = OLE_CALL_ARGS(priv->pTVTuner, get_ConnectInput, &lInput);
@@ -1058,11 +1058,13 @@ static HRESULT set_nearest_freq(priv_t * priv, long lFreq)
nChannel = priv->first_channel + i;
lFreqDiff = labs(lFreq - priv->freq_table[i]);
}
+ mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: set_nearest_freq #%d (%ld) => %d (%ld)\n",i+priv->first_channel,priv->freq_table[i], nChannel,lFreqDiff);
}
if (nChannel == -1) {
mp_msg(MSGT_TV,MSGL_ERR, MSGTR_TVI_DS_UnableFindNearestChannel);
return E_FAIL;
}
+ mp_msg(MSGT_TV, MSGL_V, "tvi_dshow: set_nearest_freq #%d (%ld)\n",nChannel,priv->freq_table[nChannel - priv->first_channel]);
hr = OLE_CALL_ARGS(priv->pTVTuner, put_Channel, nChannel,
AMTUNER_SUBCHAN_DEFAULT, AMTUNER_SUBCHAN_DEFAULT);
if (FAILED(hr)) {
@@ -1087,7 +1089,7 @@ static int set_frequency(priv_t * priv, long lFreq)
{
HRESULT hr;
- mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: set_frequency called\n");
+ mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: set_frequency called: %ld\n", lFreq);
if (!priv->pTVTuner)
return TVI_CONTROL_FALSE;
if (priv->direct_setfreq_call) { //using direct call to set frequency