<div dir="ltr"><p class="MsoNormal"><span style="color:rgb(31,73,125)">In my plugin</span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><br></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">start position in segment is getting updated through gst_segment_set_newsegment() api from element_sink_event function when GST_EVENT_NEWSEGMENT is received on
the video sink pad.</span></p>

<p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span></p>

<p class="MsoNormal"><span style="color:rgb(31,73,125)">and stop position in
the segment is being updated on each buffer that is received in element_sink_chain function through gst_segment_set_last_stop() api.</span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><br></span></p><p class="MsoNormal">

<span style="color:rgb(31,73,125)">is this correct?</span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><br></span></p><p class="MsoNormal"><font color="#1f497d">Thanks,</font></p><p class="MsoNormal"><font color="#1f497d">Yogesh</font></p>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 1:00 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mi, 2014-05-21 at 11:14 +0530, Yogesh Tyagi wrote:<br>
> Hi,<br>
><br>
> In my plugin, I have a convert function in video sink element which is<br>
> checking for temporal clipping in the buffer and drops the buffer if buffer<br>
> duration is outside segment boundaries. Due to temporal clipping, I get<br>
> choppy audio/video or sometimes no audio for some streams.If I disable this<br>
> convert function, streams start plying fine.<br>
><br>
</div>> [...]<br>
<div class="">><br>
> Is this a must have function for video sink elements?<br>
<br>
</div>No, and also GstBaseSink will do that for you already. Is your sink<br>
inheriting from GstBaseSink?<br>
<br>
However if buffers are dropped there but should not that would indicate<br>
a problem with the configured segment or the timestamps, and not doing<br>
the clipping would only hide that problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>