diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 13:01:00 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 13:01:00 +0000 |
commit | 570fd9006dcf6f9aaa460e79b93b7ce37f7c6d7b (patch) | |
tree | ed387d71185404d03367e64a52093b0e6369ed67 /src/input/vcd | |
parent | bb62a769e4a50cef3023408bf9a527e63b7d884d (diff) | |
download | xine-lib-570fd9006dcf6f9aaa460e79b93b7ce37f7c6d7b.tar.gz xine-lib-570fd9006dcf6f9aaa460e79b93b7ce37f7c6d7b.tar.bz2 |
more helper functions cleanup (stream info, meta info)
CVS patchset: 5731
CVS date: 2003/11/15 13:01:00
Diffstat (limited to 'src/input/vcd')
-rw-r--r-- | src/input/vcd/xineplug_inp_vcd.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/input/vcd/xineplug_inp_vcd.c b/src/input/vcd/xineplug_inp_vcd.c index 537c14875..cba0bf170 100644 --- a/src/input/vcd/xineplug_inp_vcd.c +++ b/src/input/vcd/xineplug_inp_vcd.c @@ -1,5 +1,5 @@ /* - $Id: xineplug_inp_vcd.c,v 1.7 2003/11/11 18:44:54 f1rmb Exp $ + $Id: xineplug_inp_vcd.c,v 1.8 2003/11/15 13:01:10 miguelfreitas Exp $ Copyright (C) 2002,2003 Rocky Bernstein <rocky@panix.com> @@ -180,15 +180,13 @@ static void meta_info_assign(int field, xine_stream_t *stream, const char * info) { if (NULL != info) { - if (stream->meta_info[field]) - free(stream->meta_info[field]); dbg_print(INPUT_DBG_META, "meta[%d]: %s\n", field, info); - stream->meta_info[field] = strdup(info); + xine_set_meta_info(stream, field, info); } } #define stream_info_assign(field, stream, info) \ - stream->stream_info[field] = info; + xine_set_stream_info(stream, field, info); /* Set stream information. */ static void @@ -1241,14 +1239,6 @@ vcd_plugin_dispose(input_plugin_t *this_gen) */ dbg_print((INPUT_DBG_CALL|INPUT_DBG_EXT), "called\n"); -#if 0 - /*FIXME - this causes termination to in waits and adds sleeps. Why? */ - free(my_vcd.stream->meta_info[XINE_META_INFO_ALBUM]); - free(my_vcd.stream->meta_info[XINE_META_INFO_ARTIST]); - free(my_vcd.stream->meta_info[XINE_META_INFO_COMMENT]); - free(my_vcd.stream->meta_info[XINE_META_INFO_GENRE]); - free(my_vcd.stream->meta_info[XINE_META_INFO_TITLE]); -#endif my_vcd.stream = NULL; #if 0 |