|
|
e85da67 |
diff -Nur audacious-plugin-fc-0.6-aud31/src/main.c audacious-plugin-fc-0.6-aud37/src/main.c
|
|
|
e85da67 |
--- audacious-plugin-fc-0.6-aud31/src/main.c 2011-10-13 23:17:11.000000000 +0200
|
|
|
e85da67 |
+++ audacious-plugin-fc-0.6-aud37/src/main.c 2011-12-23 22:13:57.450003995 +0100
|
|
|
e85da67 |
@@ -21,9 +21,10 @@
|
|
|
e85da67 |
#include <audacious/plugin.h>
|
|
|
e85da67 |
#include <glib.h>
|
|
|
e85da67 |
#include <fc14audiodecoder.h>
|
|
|
e85da67 |
+#include <stdio.h>
|
|
|
e85da67 |
|
|
|
e85da67 |
-#if _AUD_PLUGIN_VERSION < 30
|
|
|
e85da67 |
-#error "At least Audacious 3.0 alpha1 is required."
|
|
|
e85da67 |
+#if _AUD_PLUGIN_VERSION < 37
|
|
|
e85da67 |
+#error "At least Audacious 3.2-alpha1 is required."
|
|
|
e85da67 |
#endif
|
|
|
e85da67 |
|
|
|
e85da67 |
#include "config.h"
|
|
|
e85da67 |
@@ -175,8 +176,8 @@
|
|
|
e85da67 |
int msecSongLen = fc14dec_duration(decoder);
|
|
|
e85da67 |
|
|
|
e85da67 |
Tuple *t = tuple_new_from_filename( filename );
|
|
|
e85da67 |
- tuple_associate_int(t, FIELD_LENGTH, NULL, msecSongLen);
|
|
|
e85da67 |
- tuple_associate_string(t, FIELD_QUALITY, NULL, "sequenced");
|
|
|
e85da67 |
+ tuple_set_int(t, FIELD_LENGTH, NULL, msecSongLen);
|
|
|
e85da67 |
+ tuple_set_str(t, FIELD_QUALITY, NULL, "sequenced");
|
|
|
e85da67 |
playback->set_tuple( playback, t );
|
|
|
e85da67 |
|
|
|
e85da67 |
/* bitrate => 4*1000 will be displayed as "4 CHANNELS" */
|
|
|
e85da67 |
@@ -275,8 +276,8 @@
|
|
|
e85da67 |
decoder = fc14dec_new();
|
|
|
e85da67 |
if (fc14dec_init(decoder,fileBuf,fileLen)) {
|
|
|
e85da67 |
t = tuple_new_from_filename(filename);
|
|
|
e85da67 |
- tuple_associate_int(t, FIELD_LENGTH, NULL, fc14dec_duration(decoder));
|
|
|
e85da67 |
- tuple_associate_string(t, FIELD_QUALITY, NULL, "sequenced");
|
|
|
e85da67 |
+ tuple_set_int(t, FIELD_LENGTH, NULL, fc14dec_duration(decoder));
|
|
|
e85da67 |
+ tuple_set_str(t, FIELD_QUALITY, NULL, "sequenced");
|
|
|
e85da67 |
}
|
|
|
e85da67 |
else {
|
|
|
e85da67 |
t = NULL;
|