<div>Hi ,,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Are you using demuxer&nbsp;also in pipeline ? &nbsp;<br></div>
<div class="gmail_quote">On Thu, Nov 27, 2008 at 3:01 PM, 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">Hi,<br>I&#39;m writing a plugin for HW video decoder,<br>functions of playing, pause and stop have been verified.<br>
<br>While seeking, the pipeline ran until the frame of seeking time<br>was decoded, i.e, it did jump to the target frame, but the test<br>program crashed then.<br><br>Here are messages shown after the sink pad received GST_EVENT_NEW_SEGMENT:<br>
(player:886): GStreamer-CRITICAL **:<br>Trying to dispose element decoder, but it is not in the NULL state.<br>You need to explicitly set elements to the NULL state before<br>dropping the final reference, to allow them to clean up.<br>
<br>(player:886): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT<br>(object)&#39; failed<br><br>After these message, it seemed the HW keep decoding from the paused frame to<br>the target frame. but the intermediate frames were not displayed.<br>
<br>Before decoding of each frame, came up the folloing message:<br>(player:886): GLib-GObject-WARNING **: invalid unclassed pointer in cast to<br>`Gstvideodec&#39;<br><br>These are part of codes in sink event handler,<br>
the format is GST_FORMAT_TIME in this case,<br><br>&nbsp; &nbsp;case GST_EVENT_NEWSEGMENT:<br>&nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GstFormat format;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gint64 start, stop, position;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gdouble rate;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gst_event_parse_new_segment(event, NULL, &amp;rate, &amp;format,<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&amp;start, &amp;stop, &amp;position);<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (GST_FORMAT_TIME == format) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;result = gst_pad_push_event(filter-&gt;srcpad, event);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;} else {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ... ...<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br><br>Below are part of codes in source event handler:<br><br>&nbsp; &nbsp;switch (GST_EVENT_TYPE(event)) {<br>&nbsp; &nbsp;case GST_EVENT_SEEK:<br>&nbsp; &nbsp; &nbsp; &nbsp;res = gst_pad_push_event(filter-&gt;sinkpad, event);<br>
&nbsp; &nbsp; &nbsp; &nbsp;break;<br>&nbsp; &nbsp;case GST_EVENT_NAVIGATION:<br>&nbsp; &nbsp;default:<br>&nbsp; &nbsp; &nbsp; &nbsp;res = gst_pad_push_event(filter-&gt;sinkpad, event);<br>&nbsp; &nbsp; &nbsp; &nbsp;break;<br>&nbsp; &nbsp;}<br><br>&nbsp; &nbsp;gst_object_unref(filter);<br>&nbsp; &nbsp;return res;<br><br>Could someone help me finding possible root cause?<br>
Thanks in advance.<br><br>-------------------------------------------------------------------------<br>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>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>