diff options
Diffstat (limited to 'ext/audiofile')
-rw-r--r-- | ext/audiofile/gstafsrc.c | 4 |
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; |