Mercurial > audlegacy-plugins
comparison src/aac/tagging_mp4.c @ 1882:eed7c270e8dd
Fix MILLIONS of Makefiles.
author | Jonathan Schleifer <js@h3c.de> |
---|---|
date | Wed, 26 Sep 2007 14:53:37 +0200 |
parents | src/aac/src/tagging_mp4.c@3da1b8942b8b |
children |
comparison
equal
deleted
inserted
replaced
1881:8bdede3414cd | 1882:eed7c270e8dd |
---|---|
1 /* | |
2 * Audacious -- Cross-platform Multimedia Player | |
3 * Copyright (c) 2005-2006 William Pitcock <nenolod@nenolod.net> | |
4 * | |
5 * This program is free software; you can redistribute it and/or modify | |
6 * it under the terms of the GNU General Public License as published by | |
7 * the Free Software Foundation; either version 2 of the License, or | |
8 * (at your option) any later version. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU General Public License | |
16 * along with this program; if not, write to the Free Software | |
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
18 */ | |
19 | |
20 #include <glib.h> | |
21 #include <string.h> | |
22 #include <unistd.h> | |
23 #include <stdlib.h> | |
24 | |
25 #include "tagging.h" | |
26 | |
27 gchar *audmp4_get_artist(mp4ff_t *file) | |
28 { | |
29 gchar *value; | |
30 | |
31 mp4ff_meta_get_artist(file, &value); | |
32 | |
33 return value; | |
34 } | |
35 | |
36 gchar *audmp4_get_title(mp4ff_t *file) | |
37 { | |
38 gchar *value; | |
39 | |
40 mp4ff_meta_get_title(file, &value); | |
41 | |
42 return value; | |
43 } | |
44 | |
45 gchar *audmp4_get_album(mp4ff_t *file) | |
46 { | |
47 gchar *value; | |
48 | |
49 mp4ff_meta_get_album(file, &value); | |
50 | |
51 return value; | |
52 } | |
53 | |
54 gchar *audmp4_get_genre(mp4ff_t *file) | |
55 { | |
56 gchar *value; | |
57 | |
58 mp4ff_meta_get_genre(file, &value); | |
59 | |
60 return value; | |
61 } | |
62 | |
63 gint audmp4_get_year(mp4ff_t *file) | |
64 { | |
65 gchar *value; | |
66 | |
67 mp4ff_meta_get_date(file, &value); | |
68 | |
69 if (!value) | |
70 return 0; | |
71 | |
72 return atoi(value); | |
73 } |