From 91ae797b38921b4dc54c5652d1f08ed97777f0f8 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sat, 8 Nov 2003 22:20:35 +0000 Subject: Use info helper functions. CVS patchset: 5709 CVS date: 2003/11/08 22:20:35 --- src/input/input_dvb.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/input/input_dvb.c') 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; } -- cgit v1.2.3