ringbuffer: remove old _full version
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 6 Dec 2011 14:06:12 +0000 (15:06 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 6 Dec 2011 14:06:12 +0000 (15:06 +0100)
gst-libs/gst/audio/gstaudiobasesink.c
gst-libs/gst/audio/gstaudioringbuffer.c
gst-libs/gst/audio/gstaudioringbuffer.h

index 763f043..6efe926 100644 (file)
@@ -1854,7 +1854,7 @@ no_sync:
   data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
   do {
     written =
-        gst_audio_ring_buffer_commit_full (ringbuf, &sample_offset,
+        gst_audio_ring_buffer_commit (ringbuf, &sample_offset,
         data + offset, samples, out_samples, &accum);
 
     GST_DEBUG_OBJECT (sink, "wrote %u of %u", written, samples);
index 3c331e1..c6b561d 100644 (file)
@@ -1491,7 +1491,7 @@ not_started:
 }
 
 /**
- * gst_audio_ring_buffer_commit_full:
+ * gst_audio_ring_buffer_commit:
  * @buf: the #GstAudioRingBuffer to commit
  * @sample: the sample position of the data
  * @data: the data to commit
@@ -1499,7 +1499,7 @@ not_started:
  * @out_samples: the number of samples to write to the ringbuffer
  * @accum: accumulator for rate conversion.
  *
- * Commit @in_samples samples pointed to by @data to the ringbuffer @buf. 
+ * Commit @in_samples samples pointed to by @data to the ringbuffer @buf.
  *
  * @in_samples and @out_samples define the rate conversion to perform on the
  * samples in @data. For negative rates, @out_samples must be negative and
@@ -1510,7 +1510,7 @@ not_started:
  * @sample in reverse order.
  *
  * @out_samples does not need to be a multiple of the segment size of the ringbuffer
- * although it is recommended for optimal performance. 
+ * although it is recommended for optimal performance.
  *
  * @accum will hold a temporary accumulator used in rate conversion and should be
  * set to 0 when this function is first called. In case the commit operation is
@@ -1526,7 +1526,7 @@ not_started:
  * Since: 0.10.11.
  */
 guint
-gst_audio_ring_buffer_commit_full (GstAudioRingBuffer * buf, guint64 * sample,
+gst_audio_ring_buffer_commit (GstAudioRingBuffer * buf, guint64 * sample,
     guchar * data, gint in_samples, gint out_samples, gint * accum)
 {
   GstAudioRingBufferClass *rclass;
@@ -1546,33 +1546,6 @@ gst_audio_ring_buffer_commit_full (GstAudioRingBuffer * buf, guint64 * sample,
 }
 
 /**
- * gst_audio_ring_buffer_commit:
- * @buf: the #GstAudioRingBuffer to commit
- * @sample: the sample position of the data
- * @data: the data to commit
- * @len: the number of samples in the data to commit
- *
- * Same as gst_audio_ring_buffer_commit_full() but with a in_samples and out_samples
- * equal to @len, ignoring accum.
- *
- * Returns: The number of samples written to the ringbuffer or -1 on
- * error.
- *
- * MT safe.
- */
-guint
-gst_audio_ring_buffer_commit (GstAudioRingBuffer * buf, guint64 sample,
-    guchar * data, guint len)
-{
-  guint res;
-  guint64 samplep = sample;
-
-  res = gst_audio_ring_buffer_commit_full (buf, &samplep, data, len, len, NULL);
-
-  return res;
-}
-
-/**
  * gst_audio_ring_buffer_read:
  * @buf: the #GstAudioRingBuffer to read from
  * @sample: the sample position of the data
index dc0e501..79f84df 100644 (file)
@@ -313,9 +313,7 @@ void            gst_audio_ring_buffer_set_sample      (GstAudioRingBuffer *buf,
 void            gst_audio_ring_buffer_clear_all       (GstAudioRingBuffer *buf);
 
 /* commit samples */
-guint           gst_audio_ring_buffer_commit          (GstAudioRingBuffer *buf, guint64 sample,
-                                                       guchar *data, guint len);
-guint           gst_audio_ring_buffer_commit_full     (GstAudioRingBuffer * buf, guint64 *sample,
+guint           gst_audio_ring_buffer_commit          (GstAudioRingBuffer * buf, guint64 *sample,
                                                        guchar * data, gint in_samples,
                                                        gint out_samples, gint * accum);