* Add 3gpp audio support.
This commit is contained in:
parent
71e399b4a6
commit
f5b2971a8f
@ -217,6 +217,11 @@ GetAudioMetadata(const char * path, char * name)
|
||||
strcpy(type, "aac");
|
||||
strcpy(mime, "audio/mp4");
|
||||
}
|
||||
else if( ends_with(path, ".3gp") )
|
||||
{
|
||||
strcpy(type, "aac");
|
||||
strcpy(mime, "audio/3gpp");
|
||||
}
|
||||
else if( ends_with(path, ".wma") || ends_with(path, ".asf") )
|
||||
{
|
||||
strcpy(type, "asf");
|
||||
@ -574,7 +579,7 @@ GetVideoMetadata(const char * path, char * name)
|
||||
memset(&m, '\0', sizeof(m));
|
||||
date[0] = '\0';
|
||||
|
||||
DPRINTF(E_DEBUG, L_METADATA, "Parsing video %s...\n", name);
|
||||
//DEBUG DPRINTF(E_DEBUG, L_METADATA, "Parsing video %s...\n", name);
|
||||
if ( stat(path, &file) != 0 )
|
||||
return 0;
|
||||
strip_ext(name);
|
||||
@ -610,6 +615,7 @@ GetVideoMetadata(const char * path, char * name)
|
||||
if( video_stream == -1 )
|
||||
{
|
||||
av_close_input_file(ctx);
|
||||
if( !is_audio(path) )
|
||||
DPRINTF(E_DEBUG, L_METADATA, "File %s does not contain a video stream.\n", basename(path));
|
||||
return 0;
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
#define MINIDLNA_VERSION "1.0.16.1"
|
||||
#define MINIDLNA_VERSION "1.0.16.2"
|
||||
|
||||
#define CLIENT_CACHE_SLOTS 20
|
||||
#define USE_FORK 1
|
||||
|
2
utils.c
2
utils.c
@ -197,7 +197,7 @@ is_audio(const char * file)
|
||||
ends_with(file, ".m4a") || ends_with(file, ".aac") ||
|
||||
ends_with(file, ".mp4") || ends_with(file, ".m4p") ||
|
||||
ends_with(file, ".wav") || ends_with(file, ".ogg") ||
|
||||
ends_with(file, ".pcm"));
|
||||
ends_with(file, ".pcm") || ends_with(file, ".3gp"));
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
x
Reference in New Issue
Block a user