List Info

Thread: Going to PAUSE for a task-based source element: dead lock




Going to PAUSE for a task-based source element: dead lock
country flaguser name
United Kingdom
2007-02-05 10:55:09
Hello,

I am writing a source element reading network
packets. It spawns a GstTask to create
buffers and push them to source pads.

A problem arise when I try to go to the PAUSE
state. In the change_state() function, I ask
the task to stop processing packets, and then
wait for its acknowledgement. The task
continues its work but is blocked when
calling gst_pad_push().

I guess that gst_pad_push() blocks as soon as
the parent element goes to PAUSE state... But
this does not work for me as I have to handle
an asynchronous control stream to request to
actual network source to stop sending
packets. Even then, there may be a few
pending packets that I need to process before
actually going to PAUSE.

I would like to know if gstreamer is able to
handle such a situation, or if I am just try
to do something that is not allowed by
gstreamer.

Thank very much you for your help!

  Fabrice



 
____________________________________________________________
________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search
Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_
v2.php

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )