Playbin flags in Rust

Russel Winder russel at winder.org.uk
Thu Feb 22 15:30:45 UTC 2018


I need to fiddle with the text flag of a playbin, so as to ensure no
subtitles. In C I believe (I have no experience) the useful symbol is
GST_PLAY_FLAGS_TEXT in the GstPlayFlags enum. In C++ (which I have
used) there is Gst::PlayFlags::PLAY_FLAG_TEXT to select out the
relevant bit. The question is what is the right way of doing things in
Rust. There is a commented out bit in: 

GStreamer_Rs/examples/src/bin/playbin.rs

but it looks mightily manual and complex.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180222/fe927877/attachment.sig>


More information about the gstreamer-devel mailing list