how to communicate between basesrc an tagdemux

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

how to communicate between basesrc an tagdemux

Santhosh Kumar
Hi,

Am looking to pass a data(ID3 tag size) from "tagdemux" and "basesrc" element. i have used a custom event to pass the data, but its ignored in gstpad.c, saying "Received event on flushing pad. Discarding".

Not sure what am doing wrong here. any suggestions/ideas ?
Reply | Threaded
Open this post in threaded view
|

Re: how to communicate between basesrc an tagdemux

Sandeep Prakash
Hi Santhosh,

This happens when the FLUSH_START event is already being processed by the event handler of the pad. This will happen at say:
1. At the beginning of the playback
2. While seeking.

Better try to wait for the FLUSH_START event to complete and try to send your custom event. I  am guessing in your will be the 1st case.

Regards,
Sandeep Prakash
http://sandeepprakash.homeip.net
Reply | Threaded
Open this post in threaded view
|

Re: how to communicate between basesrc an tagdemux

Santhosh Kumar
yes, its happening at the beginning of the track. I hope Flush start event will be done only it receives a new segment event. But i want basesrc to process my custom event before it can send a new segment event.

Is there any other way to send my "data" during Flush start event or if there are any other way to send data other than events from tagdemux to basesrc?
Reply | Threaded
Open this post in threaded view
|

Re: how to communicate between basesrc an tagdemux

Tim-Philipp Müller-2
On Tue, 2010-07-27 at 07:25 -0700, Santhosh Kumar wrote:

> yes, its happening at the beginning of the track. I hope Flush start event
> will be done only it receives a new segment event. But i want basesrc to
> process my custom event before it can send a new segment event.
>
> Is there any other way to send my "data" during Flush start event or if
> there are any other way to send data other than events from tagdemux to
> basesrc?

You're not really providing enough information of what exactly you're
doing, or why you're doing it that way.

However, you may also want to check the state of the downstream element;
the pad may be flushing because the element is still in a state where
the pad hasn't been activated yet.

Cheers
 -Tim


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel