<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 05/21/2015 09:27 AM, Christian Sell
wrote:<br>
</div>
<blockquote
cite="mid:1396151870.161728.1432211266364.JavaMail.open-xchange@omgreatgod.store"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div>hmm, but whats entirely not normal IMO is the fact that the
seek fails without ever reaching my element logic. If I dont
have the flag set, my element is not used at all. If I have it
set, the BaseParse implementation says it cannot handle negative
playback rates... bummer.</div>
</blockquote>
Your baseparse element shouldn't have the SINK flag marked as it is
not a sink.<br>
<br>
What is your full pipeline? Does the seek work if you remove your
element?<br>
<br>
Additionally, check gstbaseparse.c code, specially the default
source event handler: gst_base_parse_src_event_default<br>
<br>
It should help you understand why does your element doesn't support
seeking.<br>
<blockquote
cite="mid:1396151870.161728.1432211266364.JavaMail.open-xchange@omgreatgod.store"
type="cite">
<div> </div>
<div><br>
> Tim Müller <a class="moz-txt-link-rfc2396E" href="mailto:tim@centricular.com"><tim@centricular.com></a> hat am 21. Mai 2015
um 14:13 geschrieben:<br>
> <br>
> <br>
> On Thu, 2015-05-21 at 13:24 +0200, Christian Sell wrote:<br>
> <br>
> Hi,<br>
> <br>
> > I have an element derived from GstBaseParse. Now,
whenever I perform a<br>
> > seek operation on the pipeline, the seek fails, and I
see a log<br>
> > messate stating "child <element> is not a sink".
Digging into the code<br>
> > that emits the log message, I see that a flag
GST_ELEMENT_FLAG_SINK is<br>
> > queried, which is not set on the element, although it
clearly has a<br>
> > sink pad.<br>
> > <br>
> > My question: who is responsible for setting it? Is
this described<br>
> > somewhere?<br>
> <br>
> Only sink elements,i.e elements that *only* have a sink
pad, should have<br>
> that flag set. In any case it's just an optimisation so if
it's not set<br>
> that should not affect behaviour. GstBin looks at that.<br>
> <br>
> The log messages are normal. When a seek is sent to the
top-level<br>
> pipeline it travels down the pipeline bin/element hierarchy
via the<br>
> GstElement::send_event vfunc. Depending on whether the
event is an<br>
> upstream event or a downstream event the GstBin/pipeline
will seek to go<br>
> down the pipeline hierarchy until it finds a sink or source
element,<br>
> which will then inject the element into the data flow and
push it<br>
> upstream/downstream. So it's entirely normal.<br>
> <br>
> Cheers<br>
> -Tim<br>
> <br>
> -- <br>
> Tim Müller, Centricular Ltd - <a class="moz-txt-link-freetext" href="http://www.centricular.com">http://www.centricular.com</a><br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
</body>
</html>