Fix build against core CVS by not using deprecated API. Bump requirements for new API (overdue anyway).

Original commit message from CVS:
* configure.ac:
* ext/mpeg2dec/gstmpeg2dec.c: (crop_buffer):
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_descramble_buffer):
* gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcmdec_chain_raw):
Fix build against core CVS by not using deprecated API. Bump
requirements for new API (overdue anyway).
This commit is contained in:
Tim-Philipp Müller 2007-07-11 23:18:14 +00:00
parent 09a366104d
commit 0e2c8a042f
5 changed files with 16 additions and 5 deletions

View file

@ -1,3 +1,12 @@
2007-07-12 Tim-Philipp Müller <tim at centricular dot net>
* configure.ac:
* ext/mpeg2dec/gstmpeg2dec.c: (crop_buffer):
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_descramble_buffer):
* gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcmdec_chain_raw):
Fix build against core CVS by not using deprecated API. Bump
requirements for new API (overdue anyway).
2007-07-09 Stefan Kost <ensonic@users.sf.net>
* REQUIREMENTS:

View file

@ -45,8 +45,8 @@ dnl AS_LIBTOOL_TAGS([CXX])
AM_PROG_LIBTOOL
dnl *** required versions of GStreamer stuff ***
GST_REQ=0.10.6
GSTPB_REQ=0.10.3
GST_REQ=0.10.13
GSTPB_REQ=0.10.13
dnl *** autotools stuff ****

View file

@ -418,7 +418,7 @@ crop_buffer (GstMpeg2dec * mpeg2dec, GstBuffer ** buf)
}
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (mpeg2dec->srcpad));
gst_buffer_stamp (outbuf, input);
gst_buffer_copy_metadata (outbuf, input, GST_BUFFER_COPY_TIMESTAMPS);
gst_buffer_unref (input);
*buf = outbuf;

View file

@ -2980,7 +2980,9 @@ gst_asf_demux_descramble_buffer (GstASFDemux * demux, AsfStream * stream,
}
}
gst_buffer_stamp (descrambled_buffer, scrambled_buffer);
gst_buffer_copy_metadata (descrambled_buffer, scrambled_buffer,
GST_BUFFER_COPY_TIMESTAMPS);
/* FIXME/CHECK: do we need to transfer buffer flags here too? */
gst_buffer_unref (scrambled_buffer);

View file

@ -560,7 +560,7 @@ gst_dvdlpcmdec_chain_raw (GstPad * pad, GstBuffer * buf)
if (ret != GST_FLOW_OK)
goto buffer_alloc_failed;
gst_buffer_stamp (outbuf, buf);
gst_buffer_copy_metadata (outbuf, buf, GST_BUFFER_COPY_TIMESTAMPS);
/* adjust samples so we can calc the new timestamp */
samples = samples / dvdlpcmdec->channels;