Lines 108-126
Link Here
|
108 |
|
108 |
|
109 |
static int mp4_isFile(char *filename) |
109 |
static int mp4_isFile(char *filename) |
110 |
{ |
110 |
{ |
111 |
if(filename){ |
111 |
gchar *extension; |
112 |
gchar* extention; |
112 |
|
113 |
|
113 |
if(filename){ |
114 |
extention = strrchr(filename, '.'); |
114 |
extension = strrchr(filename, '.'); |
115 |
if (extention && |
115 |
if (extension && |
116 |
!strcasecmp(extention, ".mp4") || // official extention |
116 |
(!strcasecmp(extension, ".mp4") || // official extension |
117 |
!strcasecmp(extention, ".m4a") || // Apple mp4 extention |
117 |
!strcasecmp(extension, ".m4a") || // Apple mp4 extension |
118 |
!strcasecmp(extention, ".aac") // old MPEG2/4-AAC extention |
118 |
!strcasecmp(extension, ".aac") // an old MPEG2/4-AAC extension |
119 |
){ |
119 |
) |
120 |
return (1); |
120 |
) return TRUE; |
121 |
} |
121 |
} |
122 |
} |
122 |
return FALSE; |
123 |
return(0); |
|
|
124 |
} |
123 |
} |
125 |
|
124 |
|
126 |
static void mp4_about(void) |
125 |
static void mp4_about(void) |