Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforge.net>2009-10-15 01:24:23 +0400
committerJustin Maggard <jmaggard@users.sourceforge.net>2009-10-15 01:24:23 +0400
commitcdcc90eceb3f62a0343ff9d4b134c6e581f0fec2 (patch)
tree1e4ef5c08ee91e462c12c78364f9a313768e3e59 /minidlna.c
parent15fc47b80d47362fa6482513bc48bf4c64840139 (diff)
* Make strict DLNA adherence optional. Many products appear to handle JPEGs >4096x4096 classified as JPEG_LRG, and it's better to not downscale if we don't have to.
Diffstat (limited to 'minidlna.c')
-rw-r--r--minidlna.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/minidlna.c b/minidlna.c
index 6f3b200..6361656 100644
--- a/minidlna.c
+++ b/minidlna.c
@@ -373,11 +373,15 @@ init(int argc, char * * argv)
break;
case UPNPINOTIFY:
if( (strcmp(ary_options[i].value, "yes") != 0) && !atoi(ary_options[i].value) )
- CLEARFLAG(INOTIFYMASK);
+ CLEARFLAG(INOTIFY_MASK);
break;
case ENABLE_TIVO:
if( (strcmp(ary_options[i].value, "yes") == 0) || atoi(ary_options[i].value) )
- SETFLAG(TIVOMASK);
+ SETFLAG(TIVO_MASK);
+ break;
+ case ENABLE_DLNA_STRICT:
+ if( (strcmp(ary_options[i].value, "yes") == 0) || atoi(ary_options[i].value) )
+ SETFLAG(DLNA_STRICT_MASK);
break;
default:
fprintf(stderr, "Unknown option in file %s\n",
@@ -741,7 +745,7 @@ main(int argc, char * * argv)
sqlite3_free_table(result);
}
if( sqlite3_threadsafe() && sqlite3_libversion_number() >= 3005001 &&
- GETFLAG(INOTIFYMASK) && pthread_create(&inotify_thread, NULL, start_inotify, NULL) )
+ GETFLAG(INOTIFY_MASK) && pthread_create(&inotify_thread, NULL, start_inotify, NULL) )
{
DPRINTF(E_FATAL, L_GENERAL, "ERROR: pthread_create() failed for start_inotify.\n");
}
@@ -768,7 +772,7 @@ main(int argc, char * * argv)
}
#ifdef TIVO_SUPPORT
- if( GETFLAG(TIVOMASK) )
+ if( GETFLAG(TIVO_MASK) )
{
DPRINTF(E_WARN, L_GENERAL, "TiVo support is enabled.\n");
/* Add TiVo-specific randomize function to sqlite */
@@ -834,7 +838,7 @@ main(int argc, char * * argv)
}
}
#ifdef TIVO_SUPPORT
- if( GETFLAG(TIVOMASK) )
+ if( GETFLAG(TIVO_MASK) )
{
if(timeofday.tv_sec >= (lastbeacontime.tv_sec + beacon_interval))
{