Contents of /trunk/libfaad2/patches/libfaad2-2.0-noext.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1024 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1024 byte(s)
-import
1 | Index: faad2-2.0/plugins/xmms/src/libmp4.c |
2 | =================================================================== |
3 | --- faad2-2.0.orig/plugins/xmms/src/libmp4.c |
4 | +++ faad2-2.0/plugins/xmms/src/libmp4.c |
5 | @@ -34,6 +34,9 @@ static void mp4_getSongInfo(char *); |
6 | static int mp4_isFile(char *); |
7 | static void* mp4Decode(void *); |
8 | |
9 | +void getMP4info(char* file); |
10 | +int getAACTrack(MP4FileHandle file); |
11 | + |
12 | InputPlugin mp4_ip = |
13 | { |
14 | 0, // handle |
15 | @@ -112,11 +115,13 @@ static int mp4_isFile(char *filename) |
16 | gchar* extention; |
17 | |
18 | extention = strrchr(filename, '.'); |
19 | + |
20 | if (extention && |
21 | - !strcasecmp(extention, ".mp4") || // official extention |
22 | - !strcasecmp(extention, ".m4a") || // Apple mp4 extention |
23 | - !strcasecmp(extention, ".aac") // old MPEG2/4-AAC extention |
24 | - ){ |
25 | + (!strcasecmp(extention, ".mp4") || // official extention |
26 | + !strcasecmp(extention, ".m4a") || // Apple mp4 extention |
27 | + !strcasecmp(extention, ".aac") // old MPEG2/4-AAC extention |
28 | + )) |
29 | + { |
30 | return (1); |
31 | } |
32 | } |