summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-04-18 13:43:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-04-18 13:43:29 +0200
commit7aef23e97f156f2b1601125e5e39080bb269c9a0 (patch)
tree638380d19cf81d855f680c013d581cf740ed0e27 /recording.c
parente6592e620190aecc24fe4f2ac2c701d41bd009f0 (diff)
downloadvdr-7aef23e97f156f2b1601125e5e39080bb269c9a0.tar.gz
vdr-7aef23e97f156f2b1601125e5e39080bb269c9a0.tar.bz2
Implemented default sort mode for recordings
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index 0164bb97..a28bb444 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 4.1 2015/04/11 10:44:38 kls Exp $
+ * $Id: recording.c 4.2 2015/04/18 13:14:55 kls Exp $
*/
#include "recording.h"
@@ -3020,7 +3020,7 @@ int ReadFrame(cUnbufferedFile *f, uchar *b, int Length, int Max)
// --- Recordings Sort Mode --------------------------------------------------
-eRecordingsSortMode RecordingsSortMode = rsmName;
+eRecordingsSortMode RecordingsSortMode = rsmTime;
bool HasRecordingsSortMode(const char *Directory)
{
@@ -3029,7 +3029,7 @@ bool HasRecordingsSortMode(const char *Directory)
void GetRecordingsSortMode(const char *Directory)
{
- RecordingsSortMode = rsmName;
+ RecordingsSortMode = eRecordingsSortMode(constrain(Setup.DefaultSortModeRec, 0, int(rsmTime)));
if (FILE *f = fopen(AddDirectory(Directory, SORTMODEFILE), "r")) {
char buf[8];
if (fgets(buf, sizeof(buf), f))