[gst-devel] gst_element_seek problem

Ngurah ignabandika at yahoo.com
Wed Jul 4 14:30:57 CEST 2007


Hi,
 Im interested about integrating Xwindow and 
gstreamer too, someone told me on irc we could using 
gst_bus_poll() to for getting the bus message inspite of using gmainloop. 
So we could get the XWindow event, and gstmessage on 1 loop.
But i dont know for sure about it coz until now i never try it.
Sorry i dont have any solution for ur problem about seeking problem. 

bounce bounce <bouncebounce at caramail.com> wrote: Thanks for your reply.

But I've some precision to give.
I don't succeed to use "direcdrawsink" to output the video. But now, I'm developping temporarily on Cygwin and I'm using "ximagesrc" like sink and it's right. I will comeback with the directdrawsink later when I will have an update of Hummingbird Exceed.

Next to begin with, I'm initializing the GStreamer's library with "gst_init_check".
Next, I'm using "g_main_loop_new" to create a temporarily loop that I'm stopping when I detect a change of state on the bus to GST_STATE_PLAYING. I'm doing that because as I'm developping with Xwindow (which is not based on glib), and if the loop is keeping, it will block my GUI and I will not be able to manipulate the video. So, when I detect this change of state, I stop the loop and I use "XtAppAddTimeOut" to repeat some action on GUI like the update of a scalebar.
That's the only way I found to allow the update of the scalebar ...

I've another problem when I put the video on GST_STATE_PAUSED only. It's paused but when I do later a GSt_STATE_PLAYING,  it's not playing but stays at pause.
And the value returns by "gst_element_set_state" is "GST_STATE_CHANGE_ASYNC".
Thus the problem will be perhaps caused by the pause of the video which happens asynchroneously in the background.

An other precision, the use of "gst_element_seek(playbin, ...)" rather than "gst_element_seek(vsink, ...) " doesn't arrange the problem. And the use of "gst_element_seek_simple ()" rather than "gst_element_seek()" doesn't change the problem.


Can the problem be corrected with a flush ?
Do yiou have ideas about these problems ?

Thanks.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070704/80ba3cb0/attachment.htm>


More information about the gstreamer-devel mailing list