<div>Hi Hung.</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exactly , &nbsp;you are right , don&#39;t unref the&nbsp;filter instance &nbsp;. <br><br></div>
<div class="gmail_quote">On Fri, Nov 28, 2008 at 8:30 AM, Wei-Di Hung <span dir="ltr">&lt;<a href="mailto:wdhung@vaplab.ee.ncu.edu.tw">wdhung@vaplab.ee.ncu.edu.tw</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">This is what I&#39;m using:<br>&nbsp; &nbsp;Gstmp4dec * filter = GST_MP4DEC(GST_PAD_PARENT(pad));<br><br>So it doen&#39;t have to unref the filter<br>
while creating the filter instance this way?<br><br>Actually I&#39;m not clear with gobject references<br>and I&#39;ll try to find it out.<br><br>On Thu, 27 Nov 2008 16:24:06 +0530, sudarshan bisht wrote<br>
<div>
<div></div>
<div class="Wj3C7c">&gt; Hi ,<br>&gt; Can u tell me how you are creating filter instance in src_event function .<br>&gt;<br>&gt; On Thu, Nov 27, 2008 at 3:29 PM, Wei-Di Hung &lt;<a href="mailto:wdhung@vaplab.ee.ncu.edu.tw">wdhung@vaplab.ee.ncu.edu.tw</a>&gt;<br>
wrote:<br>&gt;<br>&gt; Yes, I use ffdemux_avi here.<br>&gt;<br>&gt; &gt; Hi ,,<br>&gt; &gt; Are you using demuxer also in pipeline ?<br>&gt; &gt;<br>&gt; &gt; On Thu, Nov 27, 2008 at 3:01 PM, Wei-Di Hung<br>&lt;<a href="mailto:wdhung@vaplab.ee.ncu.edu.tw">wdhung@vaplab.ee.ncu.edu.tw</a>&gt; wrote:<br>
&gt; &gt; Hi,<br>&gt; &gt; I&#39;m writing a plugin for HW video decoder,<br>&gt; &gt; functions of playing, pause and stop have been verified.<br>&gt; &gt;<br>&gt; &gt; While seeking, the pipeline ran until the frame of seeking time<br>
&gt; &gt; was decoded, i.e, it did jump to the target frame, but the test<br>&gt; &gt; program crashed then.<br>&gt; &gt;<br>&gt; &gt; Here are messages shown after the sink pad received<br>GST_EVENT_NEW_SEGMENT:<br>&gt; &gt; (player:886): GStreamer-CRITICAL **:<br>
&gt; &gt; Trying to dispose element decoder, but it is not in the NULL state.<br>&gt; &gt; You need to explicitly set elements to the NULL state before<br>&gt; &gt; dropping the final reference, to allow them to clean up.<br>
&gt; &gt;<br>&gt; &gt; (player:886): GLib-GObject-CRITICAL **: g_object_ref: assertion<br>`G_IS_OBJECT<br>&gt; &gt; (object)&#39; failed<br>&gt; &gt;<br>&gt; &gt; After these message, it seemed the HW keep decoding from the paused frame<br>
to<br>&gt; &gt; the target frame. but the intermediate frames were not displayed.<br>&gt; &gt;<br>&gt; &gt; Before decoding of each frame, came up the folloing message:<br>&gt; &gt; (player:886): GLib-GObject-WARNING **: invalid unclassed pointer in cast<br>
to<br>&gt; &gt; `Gstvideodec&#39;<br>&gt; &gt;<br>&gt; &gt; These are part of codes in sink event handler,<br>&gt; &gt; the format is GST_FORMAT_TIME in this case,<br>&gt; &gt;<br>&gt; &gt; case GST_EVENT_NEWSEGMENT:<br>&gt; &gt; {<br>
&gt; &gt; GstFormat format;<br>&gt; &gt; gint64 start, stop, position;<br>&gt; &gt; gdouble rate;<br>&gt; &gt;<br>&gt; &gt; gst_event_parse_new_segment(event, NULL, &amp;rate, &amp;format,<br>&gt; &gt; &amp;start, &amp;stop, &amp;position);<br>
&gt; &gt;<br>&gt; &gt; if (GST_FORMAT_TIME == format) {<br>&gt; &gt; result = gst_pad_push_event(filter-&gt;srcpad, event);<br>&gt; &gt; } else {<br>&gt; &gt; ... ...<br>&gt; &gt; }<br>&gt; &gt; break;<br>&gt; &gt; }<br>&gt; &gt;<br>
&gt; &gt; Below are part of codes in source event handler:<br>&gt; &gt;<br>&gt; &gt; switch (GST_EVENT_TYPE(event)) {<br>&gt; &gt; case GST_EVENT_SEEK:<br>&gt; &gt; res = gst_pad_push_event(filter-&gt;sinkpad, event);<br>
&gt; &gt; break;<br>&gt; &gt; case GST_EVENT_NAVIGATION:<br>&gt; &gt; default:<br>&gt; &gt; res = gst_pad_push_event(filter-&gt;sinkpad, event);<br>&gt; &gt; break;<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; gst_object_unref(filter);<br>
&gt; &gt; return res;<br>&gt; &gt;<br>&gt; &gt; Could someone help me finding possible root cause?<br>&gt; &gt; Thanks in advance.<br>&gt; &gt;<br>&gt; &gt; -------------------------------------------------------------------------<br>
&gt; &gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s<br>challenge<br>&gt; &gt; Build the coolest Linux based applications with Moblin SDK &amp; win great<br>prizes<br>&gt; &gt; Grand prize is a trip for two to an Open Source event anywhere in the<br>
world<br>&gt; &gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>&gt; &gt; _______________________________________________<br>
&gt; &gt; gstreamer-devel mailing list<br>&gt; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>&gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Regards,<br>&gt; &gt;<br>&gt; &gt; Sudarshan Bisht<br>&gt;<br>&gt;<br>&gt; -------------------------------------------------------------------------<br>&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s<br>
challenge<br>&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great<br>prizes<br>&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; _______________________________________________<br>&gt; gstreamer-devel mailing list<br>&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Regards,<br>&gt;<br>&gt; Sudarshan Bisht<br><br><br></div></div>-------------------------------------------------------------------------<br>
<div>
<div></div>
<div class="Wj3C7c">This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>_______________________________________________<br>gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>