Commit graph

4 commits

Author SHA1 Message Date
Wim Taymans
67c932ef0e Aplied the patches from vishnu to implement seeking in various plugins. bytestream now has an event-aware API.
Original commit message from CVS:
Aplied the patches from vishnu to implement seeking in various plugins.
bytestream now has an event-aware API.
2001-10-23 19:50:41 +00:00
Wim Taymans
14de4f27da Patch from vishnu:
Original commit message from CVS:
Patch from vishnu:

The attached patch adds event support to bytestream.  Here's how it
works:  When bytestream encounters an event, the event is saved and
it returns NULL.  Then you must call a new API to retrieve the event
and handle it:

void
gst_bytestream_get_status (GstByteStream *bs,
guint32 *avail_out,
GstEvent **event_out);

Whatever is necessary to handle the event is left up to the plugin.
Once the event is retrieved then the bytestream continues as usual.
2001-10-22 19:00:52 +00:00
Wim Taymans
97f1771e6a Applied vishnus patch:
Original commit message from CVS:
Applied vishnus patch:
* Check all return codes and reliably return NULL if no more data is
available.
* Split _flush into _flush/_flush_fast.  This is partly to make the code
self-documenting -- the flush in gst_bytestream_read cannot fail.  Also,
this is a slight optimization.[A
2001-10-21 19:14:48 +00:00
Erik Walthinsen
d574ab8126 merge from EVENTS1 on 20011016
Original commit message from CVS:
merge from EVENTS1 on 20011016
2001-10-17 10:21:27 +00:00