Allow seeks on audio pad, make mad forward those (#164826).

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* ext/mad/gstmad.c: (gst_mad_src_event):
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_event):
Allow seeks on audio pad, make mad forward those (#164826).
* gst/audioscale/gstaudioscale.c: (gst_audioscale_chain):
Set duration (#165335).
This commit is contained in:
Ronald S. Bultje 2005-01-27 10:14:22 +00:00
parent 65c1e517c6
commit 9a0c490a54
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2005-01-27 Edward Hervey <bilboed@bilboed.com>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/mad/gstmad.c: (gst_mad_src_event):
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_event):
Allow seeks on audio pad, make mad forward those (#164826).
* gst/audioscale/gstaudioscale.c: (gst_audioscale_chain):
Set duration (#165335).
2005-01-27 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_init),

View file

@ -549,6 +549,7 @@ gst_audioscale_chain (GstPad * pad, GstData * _data)
{
GstBuffer *buf = GST_BUFFER (_data);
GstBuffer *tempbuf, *tempbuf2;
GstClockTime outduration;
Audioscale *audioscale;
guchar *data;
@ -610,6 +611,7 @@ gst_audioscale_chain (GstPad * pad, GstData * _data)
data = GST_BUFFER_DATA (buf);
size = GST_BUFFER_SIZE (buf);
outduration = GST_BUFFER_DURATION (buf);
GST_DEBUG ("gst_audioscale_chain: got buffer of %ld bytes in '%s'\n",
size, gst_element_get_name (GST_ELEMENT (audioscale)));
@ -647,6 +649,7 @@ gst_audioscale_chain (GstPad * pad, GstData * _data)
gst_buffer_unref (tempbuf);
tempbuf = audioscale->outbuf;
}
GST_BUFFER_DURATION (tempbuf) = outduration;
gst_pad_push (audioscale->srcpad, GST_DATA (tempbuf));
}