pkgsrc/audio/flac123/patches/patch-ae
2007-01-09 23:36:45 +00:00

30 lines
868 B
Text

$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
}
}