From f7394c0c4317a018b30858886c18003cb97c0996 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Sat, 19 Feb 2011 00:53:18 +0000 Subject: [PATCH] * Remove any DLNA profile info for TiVo files. --- metadata.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/metadata.c b/metadata.c index 09121fa..88e621f 100644 --- a/metadata.c +++ b/metadata.c @@ -1432,8 +1432,13 @@ video_no_dlna: #ifdef TIVO_SUPPORT if( ends_with(path, ".TiVo") && is_tivo_file(path) ) { - free(m.mime); - asprintf(&m.mime, "video/x-tivo-mpeg"); + if( m.dlna_pn ) + { + free(m.dlna_pn); + m.dlna_pn = NULL; + } + m.mime = realloc(m.mime, 18); + strcpy(m.mime, "video/x-tivo-mpeg"); } #endif if( !m.title )