summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Lampard <mlampard@users.sourceforge.net>2004-12-07 14:54:28 +0000
committerMike Lampard <mlampard@users.sourceforge.net>2004-12-07 14:54:28 +0000
commitb836efe6f75ec4edfa3749fa363b870064e7d77c (patch)
tree3b25f4b862612e5fe51dd60409e3682e3af75acb /src
parent4d7d40a1df6f4332361a1698fc8b434d98ee1cf1 (diff)
downloadxine-lib-b836efe6f75ec4edfa3749fa363b870064e7d77c.tar.gz
xine-lib-b836efe6f75ec4edfa3749fa363b870064e7d77c.tar.bz2
variable declarations above statements please...
CVS patchset: 7202 CVS date: 2004/12/07 14:54:28
Diffstat (limited to 'src')
-rw-r--r--src/input/input_dvb.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c
index eaf9fc5d0..46ecd089a 100644
--- a/src/input/input_dvb.c
+++ b/src/input/input_dvb.c
@@ -1181,10 +1181,11 @@ static void do_eit(dvb_input_plugin_t *this)
case 0x4D: { /* simple program info descriptor */
int name_len;
int desc_len;
+ xine_cfg_entry_t language;
desc_len = getbits(eit, 0, 8);
/* Let's get the EPG data only in the wanted language. */
- xine_cfg_entry_t language;
+
xine_config_lookup_entry(this->stream->xine, "input.dvd_language", &language);
if (language.str_value && *language.str_value &&
@@ -1342,10 +1343,10 @@ static void show_eit(dvb_input_plugin_t *this) {
}
/*Content Type and Rating if any*/
if(strlen(this->channels[this->channel].eit[0].content)>3){
-
+ int prog_rating;
snprintf(line, 94, "%s", this->channels[this->channel].eit[0].content);
- const int prog_rating = this->channels[this->channel].eit[0].rating;
+ prog_rating = this->channels[this->channel].eit[0].rating;
if (prog_rating > 0) {
snprintf(line + strlen(line), 7, " (%i+)", prog_rating);
}
@@ -1394,10 +1395,10 @@ static void show_eit(dvb_input_plugin_t *this) {
}
/*Content Type and Rating if any*/
if(strlen(this->channels[this->channel].eit[1].content)>3){
-
+ int prog_rating;
snprintf(line, 94, "%s", this->channels[this->channel].eit[1].content);
- const int prog_rating = this->channels[this->channel].eit[1].rating;
+ prog_rating = this->channels[this->channel].eit[1].rating;
if (prog_rating > 0) {
snprintf(line + strlen(line), 7, " (%i+)", prog_rating);
}