summaryrefslogtreecommitdiff
path: root/radio.c
diff options
context:
space:
mode:
authorUlrich Eckhardt <uli@uli-eckhardt.de>2018-07-15 16:55:50 +0200
committerUlrich Eckhardt <uli@uli-eckhardt.de>2018-07-15 16:55:50 +0200
commit2c775ce4f145570600f24821e2010f3e95d18f8e (patch)
treee797af148c8fcb24d676866a409be83493b60f12 /radio.c
parentb579440eba200c178b3860683634b4b83053cd23 (diff)
downloadvdr-plugin-radio-2c775ce4f145570600f24821e2010f3e95d18f8e.tar.gz
vdr-plugin-radio-2c775ce4f145570600f24821e2010f3e95d18f8e.tar.bz2
Improved CRC check.
- The CRC check uses now the lenght of the RDS Frame, this improves decoding specially on HarmonyFM. - Code splits and code cleanups. - Remove currently unused Traffic decoder.
Diffstat (limited to 'radio.c')
-rw-r--r--radio.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/radio.c b/radio.c
index 99c4a6f..f2f8c43 100644
--- a/radio.c
+++ b/radio.c
@@ -61,7 +61,7 @@ int S_RtMsgItems = 0;
int S_RassText = 1;
int S_ExtInfo = 0;
uint32_t rt_color[9];
-int S_Verbose = 1;
+int S_Verbose = 0;
int S_Encrypted = 0;
// Radiotext
char RT_Text[5][RT_MEL];
@@ -187,37 +187,38 @@ bool cPluginRadio::ProcessArgs(int argc, char *argv[])
while ((c = getopt_long(argc, argv, "f:d:l:r:e:v:", long_options, NULL)) != -1) {
switch (c) {
case 'f':
- printf("vdr-radio: arg files-dir = %s\n", optarg);
+ isyslog("vdr-radio: arg files-dir = %s", optarg);
ConfigDir = strdup(optarg);
ConfigDirParam = true;
break;
case 'd':
- printf("vdr-radio: arg data-dir = %s\n", optarg);
+ isyslog("vdr-radio: arg data-dir = %s", optarg);
DataDir = strdup(optarg);
DataDirParam = true;
break;
case 'l':
- printf("vdr-radio: arg live-mpeg = %s\n", optarg);
+ isyslog("vdr-radio: arg live-mpeg = %s", optarg);
LiveFile = strdup(optarg);
LiveFileParam = true;
break;
case 'r':
- printf("vdr-radio: arg replay-mpeg = %s\n", optarg);
+ isyslog("vdr-radio: arg replay-mpeg = %s", optarg);
ReplayFile = strdup(optarg);
ReplayFileParam = true;
break;
case 'v':
- printf("vdr-radio: arg verbose = %s\n", optarg);
- if (isnumber(optarg))
+ isyslog("vdr-radio: arg verbose = %s", optarg);
+ if (isnumber(optarg)) {
S_Verbose = atoi(optarg);
+ }
break;
case 'e':
- printf("vdr-radio: arg encrypted = %s\n", optarg);
+ isyslog("vdr-radio: arg encrypted = %s", optarg);
if (isnumber(optarg))
S_Encrypted = atoi(optarg);
break;
default:
- printf("vdr-radio: arg char = %c\n", c);
+ isyslog("vdr-radio: arg char = %c\n", c);
return false;
}
}
@@ -228,7 +229,7 @@ bool cPluginRadio::ProcessArgs(int argc, char *argv[])
bool cPluginRadio::Start(void)
{
// Start any background activities the plugin shall perform.
- printf("vdr-radio: Radio-Plugin Backgr.Image/RDS-Text starts...\n");
+ isyslog("vdr-radio: Radio-Plugin Backgr.Image/RDS-Text starts...\n");
radioImage = new cRadioImage;
if (!radioImage)