From ab558e6539a12b6514387cc0763d34c59dd66e3e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 16 Jun 2002 21:57:23 +0000 Subject: [PATCH] implement size event Original commit message from CVS: implement size event --- ext/gnomevfs/gstgnomevfssrc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index 36a9535aff..56ade572b4 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -669,6 +669,14 @@ gst_gnomevfssrc_srcpad_event (GstPad *pad, GstEvent *event) g_object_notify (G_OBJECT (src), "offset"); break; } + case GST_EVENT_SIZE: + if (GST_EVENT_SIZE_FORMAT (event) != GST_FORMAT_BYTES) { + return FALSE; + } + src->bytes_per_read = GST_EVENT_SIZE_VALUE (event); + g_object_notify (G_OBJECT (src), "bytesperread"); + break; + case GST_EVENT_FLUSH: src->need_flush = TRUE; break;