clients: add Asus O!Play support and quirks

Asus O!Play reboots with titles longer than 23 characters with some
file types when there are subtitles present.  So we truncate video
file titles with external subtitles.

It also supports subtitles in LG fashion, so add that too.
This commit is contained in:
Justin Maggard
2014-03-13 10:48:41 -07:00
parent 365d5c3412
commit 0ea24845eb
3 changed files with 15 additions and 0 deletions

View File

@ -795,6 +795,12 @@ callback(void *args, int argc, char **argv, char **azColName)
else
alt_title = NULL;
}
/* Asus OPlay reboots with titles longer than 23 characters with some file types. */
else if( passed_args->client == EAsusOPlay && (passed_args->flags & FLAG_HAS_CAPTIONS) )
{
if( strlen(title) > 23 )
title[23] = '\0';
}
}
else if( *mime == 'a' )
{
@ -967,6 +973,7 @@ callback(void *args, int argc, char **argv, char **azColName)
break;
case ESamsungSeriesCDE:
case ELGDevice:
case EAsusOPlay:
default:
if( passed_args->flags & FLAG_HAS_CAPTIONS )
{