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:
Diffstat (limited to 'metadata.c')
-rw-r--r--metadata.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/metadata.c b/metadata.c
index 1f2cde4..5e3d589 100644
--- a/metadata.c
+++ b/metadata.c
@@ -36,6 +36,7 @@
#include "tagutils/tagutils.h"
#include "upnpglobalvars.h"
+#include "upnphttp.h"
#include "upnpreplyparse.h"
#include "metadata.h"
#include "albumart.h"
@@ -648,7 +649,7 @@ GetVideoMetadata(const char * path, char * name)
ts_timestamp_t ts_timestamp = NONE;
char fourcc[4];
int off;
- int duration, hours, min, sec, ms;
+ int duration=0, hours, min, sec, ms;
aac_object_type_t aac_type = AAC_INVALID;
sqlite_int64 album_art = 0;
char nfo[PATH_MAX], *ext;
@@ -1501,6 +1502,10 @@ video_no_dlna:
{
ret = sqlite3_last_insert_rowid(db);
check_for_captions(path, ret);
+
+ /* if option is set, create suitable Samsung MTA file for this video */
+ if (duration > 0 && GETFLAG(EXTERNAL_MTA_FILE_MASK))
+ generate_external_samsung_mta_file(path, duration);
}
free_metadata(&m, free_flags);