diff options
author | phelin <phelin> | 2008-01-10 23:32:18 +0000 |
---|---|---|
committer | phelin <phelin> | 2008-01-10 23:32:18 +0000 |
commit | 484149ce03b96d7656b7aa3af0f953c249117385 (patch) | |
tree | 59df516263dde2bd53078bdc16728991197e4e56 /xine_input_vdr.c | |
parent | 8eb6d9b1f30318a7d4446889952805073693e26a (diff) | |
download | xineliboutput-484149ce03b96d7656b7aa3af0f953c249117385.tar.gz xineliboutput-484149ce03b96d7656b7aa3af0f953c249117385.tar.bz2 |
Add Tracknumber for playlist items.
Diffstat (limited to 'xine_input_vdr.c')
-rw-r--r-- | xine_input_vdr.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index fb919883..2782ce04 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.110 2008-01-10 21:37:14 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.111 2008-01-10 23:32:18 phelin Exp $ * */ @@ -2618,14 +2618,15 @@ static void send_meta_info(vdr_input_plugin_t *this) if(this->slave_stream) { /* send stream meta info */ - char *meta = NULL; - char *title = (char *)xine_get_meta_info(this->slave_stream, XINE_META_INFO_TITLE); - char *artist = (char *)xine_get_meta_info(this->slave_stream, XINE_META_INFO_ARTIST); - char *album = (char *)xine_get_meta_info(this->slave_stream, XINE_META_INFO_ALBUM); - - asprintf(&meta, - "INFO METAINFO title=\'%s\' artist=\'%s\' album=\'%s\'\r\n", - title?:"", artist?:"", album?:""); + char *meta = NULL; + char *title = (char *)xine_get_meta_info(this->slave_stream, XINE_META_INFO_TITLE); + char *artist = (char *)xine_get_meta_info(this->slave_stream, XINE_META_INFO_ARTIST); + char *album = (char *)xine_get_meta_info(this->slave_stream, XINE_META_INFO_ALBUM); + char *tracknumber = (char *)xine_get_meta_info(this->slave_stream, XINE_META_INFO_TRACK_NUMBER); + + asprintf(&meta, + "INFO METAINFO title=\'%s\' artist=\'%s\' album=\'%s\' tracknumber=\'%s\'\r\n", + title?:"", artist?:"", album?:"", tracknumber?:""); if(this->fd_control < 0) this->funcs.xine_input_event(meta, NULL); |