EOS identification

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

EOS identification

chandu
Hi,

I hava a doubt in identifying EOS.

I have allocated memory(for internal usage and adaptor buffer) for my dummy plugin in one of the init function. I wanted to free the memory after processing the complete stream. iam using push based scheduling to transfer the data. for this i have written an event handler function on sink pad. but this function is not called. how can i identify EOS event and free the memory allocated.

Thanks in advance
Chandrakala
Reply | Threaded
Open this post in threaded view
|

Re: EOS identification

Victor Jaquez
On Tue, Nov 22, 2011 at 07:57:39PM -0800, chandu wrote:

> Hi,
>
> I hava a doubt in identifying EOS.
>
> I have allocated memory(for internal usage and adaptor buffer) for my dummy
> plugin in one of the init function. I wanted to free the memory after
> processing the complete stream. iam using push based scheduling to transfer
> the data. for this i have written an event handler function on sink pad. but
> this function is not called. how can i identify EOS event and free the
> memory allocated.

The events handler should do it

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-advanced-events.html

Remember to use gst_pad_set_event_function () for assign the function.

vmjl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: EOS identification

chandu
Thanks vmjl,

i have written event handler on source pad instead of sink pad. because of this i was not able to get EOS. right now the problem is resolved.

Thank you,
Chandrakala

----- Original Message -----
From: "Víctor M. Jáquez L. [via GStreamer-devel]" <[hidden email]>
To: "chandu" <[hidden email]>
Sent: Friday, November 25, 2011 4:33:56 PM
Subject: Re: EOS identification

On Tue, Nov 22, 2011 at 07:57:39PM -0800, chandu wrote:

> Hi,
>
> I hava a doubt in identifying EOS.
>
> I have allocated memory(for internal usage and adaptor buffer) for my dummy
> plugin in one of the init function. I wanted to free the memory after
> processing the complete stream. iam using push based scheduling to transfer
> the data. for this i have written an event handler function on sink pad. but
> this function is not called. how can i identify EOS event and free the
> memory allocated.
The events handler should do it

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-advanced-events.html

Remember to use gst_pad_set_event_function () for assign the function.

vmjl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel





If you reply to this email, your message will be added to the discussion below: http://gstreamer-devel.966125.n4.nabble.com/EOS-identification-tp4098453p4107041.html
To unsubscribe from EOS identification, click here .
NAML