options: Add enable_subtitles config option

Enable generic subtitle support by default for unknown clients.  Set the
new enable_subtitles option to false to revert to the old behavior.
This commit is contained in:
Justin Maggard
2018-01-09 14:50:15 -08:00
parent 33fd018828
commit 8bdba2f40d
8 changed files with 21 additions and 2 deletions

View File

@ -839,6 +839,10 @@ callback(void *args, int argc, char **argv, char **azColName)
if( *mime == 'v' )
{
dlna_flags |= DLNA_FLAG_TM_S;
if (GETFLAG(SUBTITLES_MASK) &&
(passed_args->client >= EStandardDLNA150 || !passed_args->client))
passed_args->flags |= FLAG_CAPTION_RES;
if( passed_args->flags & FLAG_MIME_AVI_DIVX )
{
if( strcmp(mime, "video/x-msvideo") == 0 )