* Add workarounds for LifeTab tablets' bad behavior.

This commit is contained in:
Justin Maggard 2012-01-09 08:03:15 +00:00
parent 0919e28b3a
commit 889a531ecd
4 changed files with 22 additions and 3 deletions

2
NEWS
View File

@ -3,6 +3,8 @@
- Add support for other operating systems. - Add support for other operating systems.
- Switch to autoconf from our little genconfig.sh. - Switch to autoconf from our little genconfig.sh.
- Enable the subtitle menu on some Samsung TV's. - Enable the subtitle menu on some Samsung TV's.
- Add subtitle support for Panasonic TV's.
- Add workarounds for LifeTab tablets' bad behavior.
1.0.22 - Released 24-Aug-2011 1.0.22 - Released 24-Aug-2011
-------------------------------- --------------------------------

View File

@ -82,6 +82,7 @@ enum client_types {
ESamsungSeriesA, ESamsungSeriesA,
ESamsungSeriesB, ESamsungSeriesB,
EMarantzDMP, EMarantzDMP,
ELifeTab,
EStandardDLNA150 = 100 EStandardDLNA150 = 100
}; };

View File

@ -448,6 +448,17 @@ intervening space) by either an integer or the keyword "infinite". */
{ {
h->reqflags |= FLAG_CAPTION; h->reqflags |= FLAG_CAPTION;
} }
else if(strncasecmp(line, "FriendlyName", 12)==0)
{
p = colon + 1;
while(isspace(*p))
p++;
if(strstrc(p, "LIFETAB", '\r'))
{
h->req_client = ELifeTab;
h->reqflags |= FLAG_MS_PFS;
}
}
} }
next_header: next_header:
while(!(line[0] == '\r' && line[1] == '\n')) while(!(line[0] == '\r' && line[1] == '\n'))

View File

@ -168,6 +168,7 @@ GetSortCapabilities(struct upnphttp * h, const char * action)
"dc:title," "dc:title,"
"dc:date," "dc:date,"
"upnp:class," "upnp:class,"
"upnp:album,"
"upnp:originalTrackNumber" "upnp:originalTrackNumber"
"</SortCaps>" "</SortCaps>"
"</u:%sResponse>"; "</u:%sResponse>";
@ -549,6 +550,10 @@ parse_sort_criteria(char *sortCriteria, int *error)
{ {
strcat(order, "d.DISC, d.TRACK"); strcat(order, "d.DISC, d.TRACK");
} }
else if( strcasecmp(item, "upnp:album") == 0 )
{
strcat(order, "d.ALBUM");
}
else else
{ {
printf("Unhandled SortCriteria [%s]\n", item); printf("Unhandled SortCriteria [%s]\n", item);