"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "upnpsoap.c" between
minidlna-1.2.0.tar.gz and minidlna-1.2.1.tar.gz

About: ReadyMedia (formerly known as MiniDLNA) is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.

upnpsoap.c  (minidlna-1.2.0):upnpsoap.c  (minidlna-1.2.1)
skipping to change at line 1130 skipping to change at line 1130
} }
} }
if( NON_ZERO(album_art) ) if( NON_ZERO(album_art) )
{ {
/* Video and audio album art is handled differently */ /* Video and audio album art is handled differently */
if( *mime == 'v' && (passed_args->filter & FILTER_RES) && !(passed_args->flags & FLAG_MS_PFS) ) { if( *mime == 'v' && (passed_args->filter & FILTER_RES) && !(passed_args->flags & FLAG_MS_PFS) ) {
ret = strcatf(str, "<res protocolInfo=\"http-g et:*:image/jpeg:DLNA.ORG_PN=JPEG_TN\">" ret = strcatf(str, "<res protocolInfo=\"http-g et:*:image/jpeg:DLNA.ORG_PN=JPEG_TN\">"
"http://%s:%d/AlbumArt/%s-%s.j pg" "http://%s:%d/AlbumArt/%s-%s.j pg"
"</res>", "</res>",
lan_addr[passed_args->iface].s tr, runtime_vars.port, album_art, detailID); lan_addr[passed_args->iface].s tr, runtime_vars.port, album_art, detailID);
if (passed_args->client == ESamsungSeriesCDE ) {
ret = strcatf(str, "<res dlna:profileI
D=\"JPEG_SM\" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\""
" protocolInfo=\"http-
get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;"
"DLNA.ORG_OP=01;DLNA.O
RG_CI=1;DLNA.ORG_FLAGS=%08X%024X\" resolution=\"320x320\">"
"http://%s:%d/AlbumArt
/%s-%s.jpg"
"</res>",
DLNA_FLAG_DLNA_V1_5|DL
NA_FLAG_TM_B|DLNA_FLAG_TM_I, 0,
lan_addr[passed_args->
iface].str, runtime_vars.port, album_art, detailID);
}
} else if( passed_args->filter & FILTER_UPNP_ALBUMARTURI ) { } else if( passed_args->filter & FILTER_UPNP_ALBUMARTURI ) {
ret = strcatf(str, "<upnp:albumArtURI"); ret = strcatf(str, "<upnp:albumArtURI");
if( passed_args->filter & FILTER_UPNP_ALBUMARTURI _DLNA_PROFILEID ) { if( passed_args->filter & FILTER_UPNP_ALBUMARTURI _DLNA_PROFILEID ) {
ret = strcatf(str, " dlna:profileID=\"JPE G_TN\" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\""); ret = strcatf(str, " dlna:profileID=\"JPE G_TN\" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\"");
} }
ret = strcatf(str, ">http://%s:%d/AlbumArt/%s- %s.jpg</upnp:albumArtURI>", ret = strcatf(str, ">http://%s:%d/AlbumArt/%s- %s.jpg</upnp:albumArtURI>",
lan_addr[passed_args->iface].s tr, runtime_vars.port, album_art, detailID); lan_addr[passed_args->iface].s tr, runtime_vars.port, album_art, detailID);
} }
} }
if( (passed_args->flags & FLAG_MS_PFS) && *mime == 'i' ) { if( (passed_args->flags & FLAG_MS_PFS) && *mime == 'i' ) {
skipping to change at line 2075 skipping to change at line 2084
video = VIDEO_DIR_ID; video = VIDEO_DIR_ID;
image = IMAGE_DIR_ID; image = IMAGE_DIR_ID;
} }
else else
{ {
audio = runtime_vars.root_container; audio = runtime_vars.root_container;
video = runtime_vars.root_container; video = runtime_vars.root_container;
image = runtime_vars.root_container; image = runtime_vars.root_container;
} }
} }
else if (h->req_client && (h->req_client->type->flags & FLAG_SAMSUNG_DCM1
0))
{
audio = "A";
video = "V";
image = "I";
}
len = snprintf(body, sizeof(body), resp, audio, video, image); len = snprintf(body, sizeof(body), resp, audio, video, image);
BuildSendAndCloseSoapResp(h, body, len); BuildSendAndCloseSoapResp(h, body, len);
} }
static void static void
SamsungSetBookmark(struct upnphttp * h, const char * action) SamsungSetBookmark(struct upnphttp * h, const char * action)
{ {
static const char resp[] = static const char resp[] =
 End of changes. 2 change blocks. 
0 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)