Video synchronization

Tim-Philipp Müller t.i.m at zen.co.uk
Sat May 19 04:34:58 PDT 2012


On Sat, 2012-05-19 at 12:25 +0100, Tim-Philipp Müller wrote:

> I presume just querying the current playback position using:
> 
>   GstFormatTime format = GST_FORMAT_TIME;
>   gin64 duration;
>   if (gst_element_query_position (pipeline, &format, &dur)) {
>     g_print ("Position: %" GST_TIME_FORMAT "\n", GST_TIME_ARGS (dur));
>   } else {
>     g_print ("Could not query position.\n");
>   }

Err, make that gint64 pos; and &pos and GST_TIME_ARGS(pos)




More information about the gstreamer-devel mailing list