Query about Seek Event on the sink pad of a sink

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

Query about Seek Event on the sink pad of a sink

Zheng, Huan

Hi, Dear developers

I’m encountering a problem when I trying to send a seek event to the sink pad of a self written sink (just call it mysink) which is derived from GstBaseSink

It looks like the event handler even doesn’t response to the seek event.

I think the issues may due to the event direction mechanism of GStreamer.

 

So, my question is, is it possible to send a seek event to the sink pad of a sink, and let it create a seek event send to upstream?

 

My goal is: send a seek event which contains time_cur->time_stop info to mysink, and mysink will handle it and tell upstream filesrc to seek to new location.

 

Thanks for your response!

 

Best Regards, Zheng, Huan(ZBT)

OTC/SSD/SSG

Intel Aisa-Pacific Research & Developement Ltd

Tel: 021-6116 6435

Inet: 8821 6435

Cub: 3W035

 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Query about Seek Event on the sink pad of a sink

Zheng, Huan

Excuse me for sending it again. Hope somebody can help.

 

Hi, Dear developers

I’m encountering a problem when I trying to send a seek event to the sink pad of a self written sink (just call it mysink) which is derived from GstBaseSink

It looks like the event handler even doesn’t response to the seek event.

I think the issues may due to the event direction mechanism of GStreamer.

 

So, my question is, is it possible to send a seek event to the sink pad of a sink, and let it create a seek event send to upstream?

 

My goal is: send a seek event which contains time_cur->time_stop info to mysink, and mysink will handle it and tell upstream filesrc to seek to new location.

 

Thanks for your response!

 

Best Regards, Zheng, Huan(ZBT)

OTC/SSD/SSG

Intel Aisa-Pacific Research & Developement Ltd

Tel: 021-6116 6435

Inet: 8821 6435

Cub: 3W035

 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Query about Seek Event on the sink pad of a sink

Edward Hervey
Administrator
In reply to this post by Zheng, Huan
Hi,

On Tue, 2008-11-04 at 16:57 +0800, Zheng, Huan wrote:

> Hi, Dear developers
>
> I’m encountering a problem when I trying to send a seek event to the
> sink pad of a self written sink (just call it mysink) which is derived
> from GstBaseSink
>
> It looks like the event handler even doesn’t response to the seek
> event.
>
> I think the issues may due to the event direction mechanism of
> GStreamer.

  Yes, because you can NOT send events (like seek) that can't go in the
same direction as the pad you're sending to (sinkpad is downstream, seek
events are upstream).

>
>  
>
> So,my question is, is it possible to send a seek event to the sink pad
> of a sink, and let it create a seek event send to upstream?

  No because of the above.

  The proper way to do this is to send the event... to the sink element
itself (gst_element_send_event(...)).

>
>  
>
> My goal is: send a seek event which contains time_cur->time_stop info
> to mysink, and mysink will handle it and tell upstream filesrc to seek
> to new location.
>
>  
>
> Thanks for your response!

   Edward
   

>
>  
>
> Best Regards, Zheng, Huan(ZBT)
>
> OTC/SSD/SSG
>
> Intel Aisa-Pacific Research & Developement Ltd
>
> Tel: 021-6116 6435
>
> Inet: 8821 6435
>
> Cub: 3W035
>
>  
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Query about Seek Event on the sink pad of a sink

Zheng, Huan
Thank you, I will try to send the seek event to element itself.
But will this seek event be handled by the sink_event_handler of the sinkpad? I will try.

Best Regards, Zheng, Huan(ZBT)
OTC/SSD/SSG
Intel Aisa-Pacific Research & Developement Ltd
Tel: 021-6116 6435
Inet: 8821 6435
Cub: 3W035

-----Original Message-----
From: Edward Hervey [mailto:[hidden email]]
Sent: 2008年11月5日 17:19
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] Query about Seek Event on the sink pad of a sink

Hi,

On Tue, 2008-11-04 at 16:57 +0800, Zheng, Huan wrote:

> Hi, Dear developers
>
> I’m encountering a problem when I trying to send a seek event to the
> sink pad of a self written sink (just call it mysink) which is derived
> from GstBaseSink
>
> It looks like the event handler even doesn’t response to the seek
> event.
>
> I think the issues may due to the event direction mechanism of
> GStreamer.

  Yes, because you can NOT send events (like seek) that can't go in the
same direction as the pad you're sending to (sinkpad is downstream, seek
events are upstream).

>
>  
>
> So,my question is, is it possible to send a seek event to the sink pad
> of a sink, and let it create a seek event send to upstream?

  No because of the above.

  The proper way to do this is to send the event... to the sink element
itself (gst_element_send_event(...)).

>
>  
>
> My goal is: send a seek event which contains time_cur->time_stop info
> to mysink, and mysink will handle it and tell upstream filesrc to seek
> to new location.
>
>  
>
> Thanks for your response!

   Edward
   

>
>  
>
> Best Regards, Zheng, Huan(ZBT)
>
> OTC/SSD/SSG
>
> Intel Aisa-Pacific Research & Developement Ltd
>
> Tel: 021-6116 6435
>
> Inet: 8821 6435
>
> Cub: 3W035
>
>  
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel