* Fix an incomplete DLNA PN with certain odd files.

This commit is contained in:
Justin Maggard 2011-03-11 09:37:55 +00:00
parent c3483cc5b5
commit 92561e56b8

View File

@ -1204,6 +1204,11 @@ GetVideoMetadata(const char * path, char * name)
break; break;
} }
} }
else
{
free(m.dlna_pn);
m.dlna_pn = NULL;
}
if( m.dlna_pn ) if( m.dlna_pn )
sprintf(m.dlna_pn+off, ";%s", dlna_no_conv); sprintf(m.dlna_pn+off, ";%s", dlna_no_conv);
DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is h.264\n", video_stream, basename(path)); DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is h.264\n", video_stream, basename(path));