Re: GStreamer 0.01
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: GStreamer 0.01
- Date: Mon, 09 May 2005 21:36:21 +0200
On Mon, 2005-05-09 at 20:41 +0200, Matthias Bläsing wrote:
BUT then I crash in to the next problem. I looked at the manual and for
a player it would be nice to be able to seek through the stream (if
seeking ist possible), so I tried after reading this:
====
gst_element_seek (audiosink, GST_SEEK_METHOD_SET
| GST_FORMAT_TIME
| GST_SEEK_FLAG_FLUSH,
time_nanoseconds);
====
Oh well, that just sucks. They're cheating. The prototype of that
function is
gboolean gst_element_seek (GstElement *element,
GstSeekType seek_type,
guint64 offset);
which clearly states that only values of type GstSeekType are allowed
for seek_type. Well, but now they allow values of type GstFormat to be
or-ed in. Our flags and enums handling code is less tolerant, simply
because it has to be due to the way we handle flags and enums. If we
allowed every kind of value for them, there'd be no way to map the
strings back to the actual value.
Looks like we need custom conversion handling for this type. I'll look
into it. But I'll definitely file a very cranky bug report, too!
--
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]