* Remove any DLNA profile info for TiVo files.

This commit is contained in:
Justin Maggard 2011-02-19 00:53:18 +00:00
parent 21a36701e6
commit f7394c0c43

View File

@ -1432,8 +1432,13 @@ video_no_dlna:
#ifdef TIVO_SUPPORT #ifdef TIVO_SUPPORT
if( ends_with(path, ".TiVo") && is_tivo_file(path) ) if( ends_with(path, ".TiVo") && is_tivo_file(path) )
{ {
free(m.mime); if( m.dlna_pn )
asprintf(&m.mime, "video/x-tivo-mpeg"); {
free(m.dlna_pn);
m.dlna_pn = NULL;
}
m.mime = realloc(m.mime, 18);
strcpy(m.mime, "video/x-tivo-mpeg");
} }
#endif #endif
if( !m.title ) if( !m.title )