mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
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:
parent
65c1e517c6
commit
9a0c490a54
2 changed files with 13 additions and 0 deletions
10
ChangeLog
10
ChangeLog
|
@ -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>
|
2005-01-27 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_init),
|
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_init),
|
||||||
|
|
|
@ -549,6 +549,7 @@ gst_audioscale_chain (GstPad * pad, GstData * _data)
|
||||||
{
|
{
|
||||||
GstBuffer *buf = GST_BUFFER (_data);
|
GstBuffer *buf = GST_BUFFER (_data);
|
||||||
GstBuffer *tempbuf, *tempbuf2;
|
GstBuffer *tempbuf, *tempbuf2;
|
||||||
|
GstClockTime outduration;
|
||||||
|
|
||||||
Audioscale *audioscale;
|
Audioscale *audioscale;
|
||||||
guchar *data;
|
guchar *data;
|
||||||
|
@ -610,6 +611,7 @@ gst_audioscale_chain (GstPad * pad, GstData * _data)
|
||||||
|
|
||||||
data = GST_BUFFER_DATA (buf);
|
data = GST_BUFFER_DATA (buf);
|
||||||
size = GST_BUFFER_SIZE (buf);
|
size = GST_BUFFER_SIZE (buf);
|
||||||
|
outduration = GST_BUFFER_DURATION (buf);
|
||||||
|
|
||||||
GST_DEBUG ("gst_audioscale_chain: got buffer of %ld bytes in '%s'\n",
|
GST_DEBUG ("gst_audioscale_chain: got buffer of %ld bytes in '%s'\n",
|
||||||
size, gst_element_get_name (GST_ELEMENT (audioscale)));
|
size, gst_element_get_name (GST_ELEMENT (audioscale)));
|
||||||
|
@ -647,6 +649,7 @@ gst_audioscale_chain (GstPad * pad, GstData * _data)
|
||||||
gst_buffer_unref (tempbuf);
|
gst_buffer_unref (tempbuf);
|
||||||
tempbuf = audioscale->outbuf;
|
tempbuf = audioscale->outbuf;
|
||||||
}
|
}
|
||||||
|
GST_BUFFER_DURATION (tempbuf) = outduration;
|
||||||
gst_pad_push (audioscale->srcpad, GST_DATA (tempbuf));
|
gst_pad_push (audioscale->srcpad, GST_DATA (tempbuf));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue