Please Define async and 0 meaning

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Please Define async and 0 meaning

Shubham Shrivastava
g_object_set(G_OBJECT(filesink), "location", "AFileFromCode.avi", "async", 0, NULL

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Please Define async and 0 meaning

James Cameron
You asked in Subject for a definition of async and 0.

"async" is a character string constant.  async is a property of
GstBaseSink, which is a parent class of GstFileSink.

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSink.html

"The “async” property can be used to instruct the sink to never perform an ASYNC state change. This feature is mostly usable when dealing with non-synchronized streams or sparse streams."

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSink.html#GstBaseSink--async

0 is the integer value zero; it means false for a gboolean.

On Fri, Aug 24, 2018 at 01:16:52PM +0530, Shubham Shrivastava wrote:
> g_object_set(G_OBJECT(filesink), "location", "AFileFromCode.avi", "async", 0,
> NULL
>

> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
James Cameron
http://quozl.netrek.org/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel