summaryrefslogtreecommitdiff
path: root/src/input/input_dvb.c
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2003-11-08 22:20:35 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2003-11-08 22:20:35 +0000
commit91ae797b38921b4dc54c5652d1f08ed97777f0f8 (patch)
tree354efe7f7a0a649dd075e7a490b1d8786128ad56 /src/input/input_dvb.c
parent684fe3aec5e100f92cd7675ccbea9b88321ac524 (diff)
downloadxine-lib-91ae797b38921b4dc54c5652d1f08ed97777f0f8.tar.gz
xine-lib-91ae797b38921b4dc54c5652d1f08ed97777f0f8.tar.bz2
Use info helper functions.
CVS patchset: 5709 CVS date: 2003/11/08 22:20:35
Diffstat (limited to 'src/input/input_dvb.c')
-rw-r--r--src/input/input_dvb.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c
index 88c76daac..551222b17 100644
--- a/src/input/input_dvb.c
+++ b/src/input/input_dvb.c
@@ -419,9 +419,7 @@ static void switch_channel (dvb_input_plugin_t *this) {
this->channels[this->channel].name);
ui_data.str_len = strlen (ui_data.str);
- if (this->stream->meta_info [XINE_META_INFO_TITLE])
- free(this->stream->meta_info [XINE_META_INFO_TITLE]);
- this->stream->meta_info [XINE_META_INFO_TITLE] = strdup (ui_data.str);
+ xine_set_meta_info(this->stream, XINE_META_INFO_TITLE, ui_data.str);
event.type = XINE_EVENT_UI_SET_TITLE;
event.stream = this->stream;
@@ -957,9 +955,7 @@ static int dvb_plugin_open (input_plugin_t *this_gen) {
snprintf (str, 256, "%04d - %s", this->channel,
this->channels[this->channel].name);
- if (this->stream->meta_info [XINE_META_INFO_TITLE])
- free(this->stream->meta_info [XINE_META_INFO_TITLE]);
- this->stream->meta_info [XINE_META_INFO_TITLE] = strdup (str);
+ xine_set_meta_info(this->stream, XINE_META_INFO_TITLE, str);
return 1;
}