<div>Hi ,,</div>
<div> Are you using demuxer also in pipeline ? <br></div>
<div class="gmail_quote">On Thu, Nov 27, 2008 at 3:01 PM, Wei-Di Hung <span dir="ltr"><<a href="mailto:wdhung@vaplab.ee.ncu.edu.tw">wdhung@vaplab.ee.ncu.edu.tw</a>></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'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)' 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'<br><br>These are part of codes in sink event handler,<br>
the format is GST_FORMAT_TIME in this case,<br><br> case GST_EVENT_NEWSEGMENT:<br> {<br> GstFormat format;<br> gint64 start, stop, position;<br> gdouble rate;<br><br> gst_event_parse_new_segment(event, NULL, &rate, &format,<br>
&start, &stop, &position);<br><br> if (GST_FORMAT_TIME == format) {<br> result = gst_pad_push_event(filter->srcpad, event);<br> } else {<br>
... ...<br> }<br> break;<br> }<br><br>Below are part of codes in source event handler:<br><br> switch (GST_EVENT_TYPE(event)) {<br> case GST_EVENT_SEEK:<br> res = gst_pad_push_event(filter->sinkpad, event);<br>
break;<br> case GST_EVENT_NAVIGATION:<br> default:<br> res = gst_pad_push_event(filter->sinkpad, event);<br> break;<br> }<br><br> gst_object_unref(filter);<br> 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's challenge<br>Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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>