changeset 27630:6fe56f6147ea

Add debug message about loaded frequency tables. Replace printed code of input type with user-frendly "broadcast"/"cable" strings. patch from Laurent laurent dot aml at gmail dot com
author voroshil
date Wed, 24 Sep 2008 20:49:27 +0000
parents d04568721d39
children 42b15a81b468
files stream/tvi_dshow.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_dshow.c	Wed Sep 24 20:42:15 2008 +0000
+++ b/stream/tvi_dshow.c	Wed Sep 24 20:49:27 2008 +0000
@@ -883,7 +883,7 @@
     TRCCountryList *pCountryList;
     int i, index;
 
-    mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: load_freq_table called %d (%d)\n",nCountry,nInputType);
+    mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: load_freq_table called %d (%s)\n",nCountry,nInputType == TunerInputAntenna ? "broadcast" : "cable");
     /* ASSERT(sizeof(TRCCountryList)==10); // need properly aligned structure */
 
     if (!pplFreqTable || !pnFirst || !pnLen)
@@ -926,6 +926,7 @@
     }
     for (i = 0; i < *pnLen; i++) {
 	(*pplFreqTable)[i] = plFreqTable[i + 2];
+	mp_msg(MSGT_TV, MSGL_DBG4, "tvi_dshow: load_freq_table #%d => (%ld)\n",i+*pnFirst,(*pplFreqTable)[i]);
     }
     FreeLibrary(hDLL);
     return S_OK;