mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
gst-libs/gst/audio/gstbaseaudiosink.c
Original commit message from CVS: 2007-02-05 Andy Wingo <wingo@pobox.com> * gst-libs/gst/audio/gstbaseaudiosink.c (gst_base_audio_sink_callback): Update basesink->offset so that we pull monotonically increasing offsets instead of, um, seeking back to 0 each time. Fixes alsasrc ! alsasink!
This commit is contained in:
parent
2933302ce8
commit
451ff2f992
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-02-05 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* gst-libs/gst/audio/gstbaseaudiosink.c
|
||||||
|
(gst_base_audio_sink_callback): Update basesink->offset so that we
|
||||||
|
pull monotonically increasing offsets instead of, um, seeking back
|
||||||
|
to 0 each time. Fixes alsasrc ! alsasink!
|
||||||
|
|
||||||
2007-02-05 Tim-Philipp Müller <tim at centricular dot net>
|
2007-02-05 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/videoscale/gstvideoscale.c:
|
* gst/videoscale/gstvideoscale.c:
|
||||||
|
|
|
@ -889,6 +889,8 @@ gst_base_audio_sink_callback (GstRingBuffer * rbuf, guint8 * data, guint len,
|
||||||
len = MIN (GST_BUFFER_SIZE (buf), len);
|
len = MIN (GST_BUFFER_SIZE (buf), len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
basesink->offset += len;
|
||||||
|
|
||||||
memcpy (data, GST_BUFFER_DATA (buf), len);
|
memcpy (data, GST_BUFFER_DATA (buf), len);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue