summaryrefslogtreecommitdiffstats
path: root/ext/audiofile
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2001-12-28 20:24:41 +0000
committerWim Taymans <wim.taymans@gmail.com>2001-12-28 20:24:41 +0000
commit42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975 (patch)
treed1c12c13d40db07bdfffeb23cbb563bbbbc5ce83 /ext/audiofile
parentd0e007a68085e63f509857e21cef8a7bd8477ce8 (diff)
downloadgst-plugins-bad-42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975.tar.gz
gst-plugins-bad-42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975.tar.bz2
gst-plugins-bad-42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975.zip
Fixed some plugins
Original commit message from CVS: Fixed some plugins
Diffstat (limited to 'ext/audiofile')
-rw-r--r--ext/audiofile/gstafsrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c
index b6538a6d..0d4e261f 100644
--- a/ext/audiofile/gstafsrc.c
+++ b/ext/audiofile/gstafsrc.c
@@ -215,8 +215,8 @@ gst_afsrc_get (GstPad *pad)
frameCount);
readbytes = readframes * (src->channels * src->width / 8);
if (readbytes == 0) {
- gst_element_signal_eos (GST_ELEMENT (src));
- return NULL;
+ gst_element_set_eos (GST_ELEMENT (src));
+ return GST_BUFFER (gst_event_new (GST_EVENT_EOS));
}
GST_BUFFER_SIZE (buf) = readbytes;