<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>RE: [gst-devel] totem and osssink? (long)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi Benjamin,<BR>
<BR>
> Well, I don't think you can force the same time on both disconts. Imagine<BR>
> having essentially two pipelines, one being { v4lsrc !<BR>
> some_cache_that_allows_seeking_back } ! xvideosink, the other being { osssrc !<BR>
> some_cache_that_allows_seeking_back } ! osssink<BR>
><BR>
> So just tell the 2 elements to always use the same time whenever possible.<BR>
> Kinda like this:<BR>
> GstSynchronize *sync = gst_synchronize_new ();<BR>
> gst_synchronize_set_master (sync, GST_SYNCHRONIZABLE (audiosink));<BR>
> gst_synchronize_add_slave (sync, GST_SYNCHRONIZABLE (videosink));<BR>
> [...]<BR>
> gst_synchronize_seek (sync, GST_SEEK_SET, my_timestamp);<BR>
> And now GstSynchronize magically makes sure that both elements stay in sync.<BR>
> Maybe it even throws an error when it's not possible to keep them synced.<BR>
<BR>
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? :).<BR>
<BR>
Ronald<BR>
</FONT>
</P>
</BODY>
</HTML>