Is gst_base_sink_set_sync(sink,false) is equivalent to sync=false ?

Tim Müller tim at centricular.com
Tue Feb 9 08:32:26 UTC 2016


On Mon, 2016-02-08 at 05:39 -0800, ooznerol wrote:

Hi,

>     //make videosink element
>     //GstElement *sink = gst_element_factory_make ("d3dvideosink",
> NULL);
>     videosink = gst_element_factory_make ("d3dvideosink",
> "videosink");
>     if (videosink == NULL)
>         g_error ("Could not create 'autovideosink' element");
>     else
>     {
>         //try so set sync =false
>         gst_base_sink_set_async_enabled
> (GST_BASE_SINK(videosink),FALSE);
>     }

(...)

> but with this my video has a lot freeze/lag. Seems like I haven't set
> sync=false.
> 
> Is gst_base_sink_set_async_enabled (GST_BASE_SINK(videosink),FALSE)
> equivalent to sync=false?

No, _set_async_enabled(sink,FALSE) is not the same as sync=false, it's
the same as async=false.

_set_sync(sink,FALSE) from your subject line is the same as sync=false
however.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com




More information about the gstreamer-devel mailing list