how to set “aspect-ratio” GstFraction * in element aspectratiocrop
cfd new
newcfd at yahoo.com
Fri Jun 23 22:24:09 UTC 2023
I have a pipeline with element aspectratiocrop. When I tried to set aspect-ratio withstd::string crop_str( "4/3" );
auto crop = gst_element_factory_make( "aspectratiocrop", nullptr );
g_object_set( G_OBJECT( crop ), "aspect-ratio", crop_str.c_str(), nullptr );
the app complains about
passed '0' as denometer for GstFraction.
How to set it properly?
Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230623/2a1c2817/attachment.htm>
More information about the gstreamer-devel
mailing list