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>2010-10-25 22:42:06 +0400
committerJustin Maggard <jmaggard@users.sourceforge.net>2010-10-25 22:42:06 +0400
commit8a2e595f0af8d188e1a5ccc76adf837e2cd64a7a (patch)
treeaa718380bdd268e33ca0554fd160b8f90976f95a
parentd77359b7658047f3800ae6275a66a3e1a10d9b76 (diff)
* Handle the "mpegvideo" format name.
-rw-r--r--metadata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/metadata.c b/metadata.c
index eaa8217..879fc68 100644
--- a/metadata.c
+++ b/metadata.c
@@ -1044,9 +1044,9 @@ GetVideoMetadata(const char * path, char * name)
{
if( strcmp(ctx->iformat->name, "avi") == 0 )
asprintf(&m.mime, "video/x-msvideo");
- else if( strcmp(ctx->iformat->name, "mpegts") == 0 )
- asprintf(&m.mime, "video/mpeg");
- else if( strcmp(ctx->iformat->name, "mpeg") == 0 )
+ else if( strcmp(ctx->iformat->name, "mpegts") == 0 ||
+ strcmp(ctx->iformat->name, "mpeg") == 0 ||
+ strcmp(ctx->iformat->name, "mpegvideo") == 0 )
asprintf(&m.mime, "video/mpeg");
else if( strcmp(ctx->iformat->name, "asf") == 0 )
asprintf(&m.mime, "video/x-ms-wmv");