List Info

Thread: multi-thread stuck problem(I guess it is)




multi-thread stuck problem(I guess it is)
user name
2007-04-18 01:59:39
Hi, I touch gstreamer a few weeks ago. Now I am studying the autoplugging src code in chapter 17 of Application Development Manual
 
I add a queue element in the close_link function in case of there is video and audio stream when playing video.
When I run this program the first time, it will stuck at the first several frame. Then I run it again, it works well.
I run the gstreamer on remote system and video file is loaded from ~/rootfs/app
 ;
I guess it is synchronization problem at the first run, and when the 2nd time the video file is already on the remote system. Is that right?
 
and how can I control the threads to let then begin run together when they both are ready?
Or how can I know how many stream there is(ie. only audio or audio and video), then I can let the first type_found stream to wait later ?
 ;
Thanks !
Re: multi-thread stuck problem(I guess it is)
user name
2007-04-18 03:38:01
On Wed, 2007-04-18 at 14:59 +0800, Nie Jun wrote:

> Now I am studying the autoplugging src code in chapter
17 of
> Application Development Manual

The autplugging code in that chapter is pretty much
broken/outdated if I
remember correctly - best to ignore it (there's a bug open
about that).

You should use decodebin/decodebin2 for autoplugging
decoders, or even
playbin, if all you want to do is playback.

 Cheers
  -Tim




------------------------------------------------------------
-------------
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://sourcefor
ge.net/powerbar/db2/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

[1-2]

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