blob: 2cd84f8304da40f62a15a9de43a17337b2c16ff2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-ae,v 1.1 2007/01/09 23:36:45 wiz Exp $
--- remote.c.orig 2005-02-25 05:50:41.000000000 +0000
+++ remote.c
@@ -150,8 +150,13 @@ static int remote_parse_input(void)
file_info.current_sample += delta_frames;
}
+#ifdef LEGACY_FLAC
FLAC__file_decoder_seek_absolute(file_info.decoder,
file_info.current_sample);
+#else
+ FLAC__stream_decoder_seek_absolute(file_info.decoder,
+ file_info.current_sample);
+#endif
}
/* absolute seek */
else
@@ -161,7 +166,11 @@ static int remote_parse_input(void)
file_info.elapsed_time = absolute_time;
file_info.current_sample = absolute_frame;
+#ifdef LEGACY_FLAC
FLAC__file_decoder_seek_absolute(file_info.decoder, absolute_frame);
+#else
+ FLAC__stream_decoder_seek_absolute(file_info.decoder, absolute_frame);
+#endif
}
}
|