mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Forgot to cvs add this patch, this patch fixes build with flac 1.1.0 and
is 1.1.2 friendly
This commit is contained in:
parent
3a1bc7d424
commit
9761dcf3c2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=130641
@ -0,0 +1,31 @@
|
||||
--- ext/flac/gstflacenc.c.orig Tue Mar 8 00:39:55 2005
|
||||
+++ ext/flac/gstflacenc.c Tue Mar 8 00:57:34 2005
|
||||
@@ -475,6 +475,8 @@
|
||||
}
|
||||
|
||||
gst_pad_push (flacenc->srcpad, GST_DATA (outbuf));
|
||||
+
|
||||
+#ifdef FLAC__MAX_METADATA_TYPE_CODE
|
||||
flacenc->offset += bytes;
|
||||
|
||||
return FLAC__STREAM_ENCODER_OK;
|
||||
@@ -489,6 +491,8 @@
|
||||
*absolute_byte_offset = flacenc->offset;
|
||||
|
||||
return FLAC__STREAM_ENCODER_OK;
|
||||
+
|
||||
+#endif
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -594,8 +598,10 @@
|
||||
gst_flacenc_write_callback);
|
||||
FLAC__seekable_stream_encoder_set_seek_callback (flacenc->encoder,
|
||||
gst_flacenc_seek_callback);
|
||||
+#ifdef FLAC__MAX_METADATA_TYPE_CODE
|
||||
FLAC__seekable_stream_encoder_set_tell_callback (flacenc->encoder,
|
||||
gst_flacenc_tell_callback);
|
||||
+#endif
|
||||
|
||||
FLAC__seekable_stream_encoder_set_client_data (flacenc->encoder, flacenc);
|
||||
|
@ -0,0 +1,31 @@
|
||||
--- ext/flac/gstflacenc.c.orig Tue Mar 8 00:39:55 2005
|
||||
+++ ext/flac/gstflacenc.c Tue Mar 8 00:57:34 2005
|
||||
@@ -475,6 +475,8 @@
|
||||
}
|
||||
|
||||
gst_pad_push (flacenc->srcpad, GST_DATA (outbuf));
|
||||
+
|
||||
+#ifdef FLAC__MAX_METADATA_TYPE_CODE
|
||||
flacenc->offset += bytes;
|
||||
|
||||
return FLAC__STREAM_ENCODER_OK;
|
||||
@@ -489,6 +491,8 @@
|
||||
*absolute_byte_offset = flacenc->offset;
|
||||
|
||||
return FLAC__STREAM_ENCODER_OK;
|
||||
+
|
||||
+#endif
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -594,8 +598,10 @@
|
||||
gst_flacenc_write_callback);
|
||||
FLAC__seekable_stream_encoder_set_seek_callback (flacenc->encoder,
|
||||
gst_flacenc_seek_callback);
|
||||
+#ifdef FLAC__MAX_METADATA_TYPE_CODE
|
||||
FLAC__seekable_stream_encoder_set_tell_callback (flacenc->encoder,
|
||||
gst_flacenc_tell_callback);
|
||||
+#endif
|
||||
|
||||
FLAC__seekable_stream_encoder_set_client_data (flacenc->encoder, flacenc);
|
||||
|
Loading…
Reference in New Issue
Block a user