summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Eckhardt <uli@uli-eckhardt.de>2018-02-22 17:55:43 (GMT)
committerUlrich Eckhardt <uli@uli-eckhardt.de>2018-02-22 17:55:43 (GMT)
commitcf7c2cb016bef8ebf5e96d1e5dcf6bf763bfe2de (patch)
tree7ba3849b899e86d664e92543086e9003ed485bfa
parent58d6446dd10bda93df6a5aaca144f3796d0b8178 (diff)
downloadvdr-plugin-radio-cf7c2cb016bef8ebf5e96d1e5dcf6bf763bfe2de.tar.gz
vdr-plugin-radio-cf7c2cb016bef8ebf5e96d1e5dcf6bf763bfe2de.tar.bz2
Add audio bitrate to new service interface
-rw-r--r--radio.c1
-rw-r--r--service.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/radio.c b/radio.c
index 521c2bf..58d086d 100644
--- a/radio.c
+++ b/radio.c
@@ -648,6 +648,7 @@ bool cPluginRadio::Service(const char *Id, void *Data)
data->rds_title = conf.Convert(RTP_Title);
data->rds_artist = conf.Convert(RTP_Artist);
data->title_start = RTP_Starttime;
+ data->bitrate = radioAudio->bitrate;
}
return true;
}
diff --git a/service.h b/service.h
index 0fa612c..7275c4e 100644
--- a/service.h
+++ b/service.h
@@ -29,6 +29,7 @@ struct RadioTextService_v1_1 {
std::string rds_title;
std::string rds_artist;
time_t title_start;
+ std::string bitrate;
};
#define RADIO_TEXT_SERVICE0 "RadioTextService-v1.0"