diff options
author | David Schleef <ds@schleef.org> | 2003-12-19 09:08:03 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-12-19 09:08:03 +0000 |
commit | b1789e0711fb15218d04b6a0ccd7a42e03113401 (patch) | |
tree | 1bead34215b8083f8eea75b84b88d9f30e3ba0ec /ext/audiofile/gstafparse.c | |
parent | 8f235b8a62a0cf8a3095ef8fb6c130ce43f36fde (diff) | |
download | gst-plugins-bad-b1789e0711fb15218d04b6a0ccd7a42e03113401.tar.gz gst-plugins-bad-b1789e0711fb15218d04b6a0ccd7a42e03113401.tar.bz2 gst-plugins-bad-b1789e0711fb15218d04b6a0ccd7a42e03113401.zip |
Convert to caps
Original commit message from CVS:
Convert to caps
Diffstat (limited to 'ext/audiofile/gstafparse.c')
-rw-r--r-- | ext/audiofile/gstafparse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/audiofile/gstafparse.c b/ext/audiofile/gstafparse.c index 52e319ec..bb37687b 100644 --- a/ext/audiofile/gstafparse.c +++ b/ext/audiofile/gstafparse.c @@ -187,7 +187,6 @@ gst_afparse_loop(GstElement *element) { GstAFParse *afparse; GstBuffer *buf; - GstBufferPool *bufpool; gint numframes = 0, frames_to_bytes, frames_per_read, bytes_per_read; guint8 *data; gboolean bypass_afread = TRUE; @@ -226,7 +225,6 @@ gst_afparse_loop(GstElement *element) frames_per_read = afparse->frames_per_read; bytes_per_read = frames_per_read * frames_to_bytes; - bufpool = gst_buffer_pool_get_default (bytes_per_read, 8); afSeekFrame(afparse->file, AF_DEFAULT_TRACK, 0); if (bypass_afread){ @@ -265,7 +263,7 @@ gst_afparse_loop(GstElement *element) } else { do { - buf = gst_buffer_new_from_pool (bufpool, 0, 0); + buf = gst_buffer_new_and_alloc (bytes_per_read); GST_BUFFER_TIMESTAMP(buf) = afparse->timestamp; data = GST_BUFFER_DATA(buf); numframes = afReadFrames (afparse->file, AF_DEFAULT_TRACK, data, frames_per_read); @@ -286,7 +284,6 @@ gst_afparse_loop(GstElement *element) while (TRUE); } gst_afparse_close_file (afparse); - gst_buffer_pool_unref(bufpool); gst_bytestream_destroy ((GstByteStream*) afparse->vfile->closure); |