[gst-devel] totem and osssink? (long)

Bultje, R.S. R.S.Bultje at students.uu.nl
Fri Mar 12 07:41:18 CET 2004


Hi Benjamin,

> Well, I don't think you can force the same time on both disconts. Imagine 
> having essentially two pipelines, one being { v4lsrc ! 
> some_cache_that_allows_seeking_back } ! xvideosink, the other being { osssrc !
> some_cache_that_allows_seeking_back } ! osssink
>
> So just tell the 2 elements to always use the same time whenever possible.
> Kinda like this:
> GstSynchronize *sync = gst_synchronize_new ();
> gst_synchronize_set_master (sync, GST_SYNCHRONIZABLE (audiosink));
> gst_synchronize_add_slave (sync, GST_SYNCHRONIZABLE (videosink));
> [...]
> gst_synchronize_seek (sync, GST_SEEK_SET, my_timestamp);
> And now GstSynchronize magically makes sure that both elements stay in sync. 
> Maybe it even throws an error when it's not possible to keep them synced.

Syncing should be automatic, also in gst-launch and so on. That's the case now, too. The trick is to automatically get them to re-sync after a change-of-time. Maybe we need a new event? :).

Ronald

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20040312/87c8352a/attachment.htm>


More information about the gstreamer-devel mailing list