<div>Hi Hung.</div>
<div> Exactly , you are right , don't unref the filter instance . <br><br></div>
<div class="gmail_quote">On Fri, Nov 28, 2008 at 8:30 AM, 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">This is what I'm using:<br> Gstmp4dec * filter = GST_MP4DEC(GST_PAD_PARENT(pad));<br><br>So it doen't have to unref the filter<br>
while creating the filter instance this way?<br><br>Actually I'm not clear with gobject references<br>and I'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">> Hi ,<br>> Can u tell me how you are creating filter instance in src_event function .<br>><br>> On Thu, Nov 27, 2008 at 3:29 PM, Wei-Di Hung <<a href="mailto:wdhung@vaplab.ee.ncu.edu.tw">wdhung@vaplab.ee.ncu.edu.tw</a>><br>
wrote:<br>><br>> Yes, I use ffdemux_avi here.<br>><br>> > Hi ,,<br>> > Are you using demuxer also in pipeline ?<br>> ><br>> > On Thu, Nov 27, 2008 at 3:01 PM, Wei-Di Hung<br><<a href="mailto:wdhung@vaplab.ee.ncu.edu.tw">wdhung@vaplab.ee.ncu.edu.tw</a>> wrote:<br>
> > 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<br>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<br>`G_IS_OBJECT<br>> > (object)' failed<br>> ><br>> > After these message, it seemed the HW keep decoding from the paused frame<br>
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<br>
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<br>challenge<br>> > Build the coolest Linux based applications with Moblin SDK & win great<br>prizes<br>> > Grand prize is a trip for two to an Open Source event anywhere in the<br>
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>
> ><br>> ><br>> > --<br>> > Regards,<br>> ><br>> > Sudarshan Bisht<br>><br>><br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great<br>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>
><br>><br>><br>> --<br>> Regards,<br>><br>> 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'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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>