From:
[email protected]
--RpqchZ26BWispMcB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Tags: patch
Hi,
The attached patch makes the dv plugin compile again. The problem is
that a previous version of libdv declared header_size in dv_types.h. The
latest version does not. I added a constant for the DV header size,
which solves the problem temporarly. Probably we should ask upstream for a cleaner solution.
Cheers,
Peter (p2).
--RpqchZ26BWispMcB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-for-gst-plugins Content-Transfer-Encoding: quoted-printable
diff -wurN t/gst-plugins-0.6.4/ext/dv/gstdvdec.c gst-plugins-0.6.4/ext/dv/gstdvdec.c
--- t/gst-plugins-0.6.4/ext/dv/gstdvdec.c 2003-04-07 22:10:33.000000000 +0200
+++ gst-plugins-0.6.4/ext/dv/gstdvdec.c 2004-08-20 23:06:30.000000000 +0200
@@ -29,6 +29,8 @@
#define PAL_HEIGHT 576
#define PAL_BUFFER 144000
+#define DV_HEADER_SIZE (80 * 52)
+
/* The ElementDetails structure gives a human-readable description
* of the plugin, as well as author and version data.
*/
@@ -695,8 +697,8 @@
dvdec = GST_DVDEC (element);
/* first read enough bytes to parse the header */
- got_bytes = gst_bytestream_peek_bytes (dvdec->bs, &inframe, header_size);
- if (got_bytes < header_size) {
+ got_bytes = gst_bytestream_peek_bytes (dvdec->bs, &inframe, DV_HEADER_SIZE); + if (got_bytes < DV_HEADER_SIZE) {
gst_dvdec_handle_sink_event (dvdec);
return;
}
--RpqchZ26BWispMcB--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBJnFcKLKVw/RurbsRAiolAKCmX1Ftul9eYxebpz9M1EO3tiRkSgCfcmrG O7Ln7Nd214quRHI1+sp6uC0=
=z5LG
-----END PGP SIGNATURE---