const gst_riff_acid *acid = NULL;
const guint data_size = sizeof (gst_riff_acid);
gfloat tempo;
+#ifdef GST_EXT_WAVPARSE_MODIFICATION
+ const guint8 *data = NULL;
+#endif
GST_INFO_OBJECT (wav, "Have acid chunk");
if (size < data_size) {
goto exit;
}
gst_adapter_flush (wav->adapter, 8);
+#ifdef GST_EXT_WAVPARSE_MODIFICATION
+ if (gst_adapter_available (wav->adapter) < 24) {
+ goto exit;
+ }
+ data = gst_adapter_map (wav->adapter, 24);
+ tempo = GST_READ_FLOAT_LE (data + 20);
+#else
acid = (const gst_riff_acid *) gst_adapter_map (wav->adapter,
data_size);
tempo = acid->tempo;
+#endif
gst_adapter_unmap (wav->adapter);
} else {
GstMapInfo map;
# warning: failed to load external entity "xml/plugin-video4linux2.xml"
export V=1
NOCONFIGURE=1 ./autogen.sh
-export CFLAGS+=" -DGST_EXT_V4L2SRC_MODIFIED"
+export CFLAGS+=" -DGST_EXT_V4L2SRC_MODIFIED\
+ -DGST_EXT_WAVPARSE_MODIFICATION"
%configure\
%if ! 0%{?ENABLE_AALIB}
--disable-aalib\