• François Laignel's avatar
    Query: allow concrete query instantiation · c9717271
    François Laignel authored
    Allow instantiating and dereferencing concrete queries. The motivation
    for this proposal is to allow the following usability enhancements:
    
    - Concrete queries mutability guaranteed by the borrow checker,
    including for generic functions:
    ``` rust
        let mut p = Query::new_position(::Format::Time);
        p.get_mut_structure().set("check_mut", &true);
    ```
    
    - Concrete queries functions available in place:
    ``` rust
        let mut q = gst::Query::new_duration(gst::Format::Time);
        let duration = if pipeline.query(&mut q) {
            Some(q.get_result())
        } else {
            None
        };
    ```
    c9717271
Name
Last commit
Last update
docs Loading commit data...
examples Loading commit data...
gir-files Loading commit data...
gstreamer Loading commit data...
gstreamer-app Loading commit data...
gstreamer-audio Loading commit data...
gstreamer-base Loading commit data...
gstreamer-net Loading commit data...
gstreamer-player Loading commit data...
gstreamer-rtsp Loading commit data...
gstreamer-rtsp-server Loading commit data...
gstreamer-sdp Loading commit data...
gstreamer-video Loading commit data...
tutorials Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
Cargo.toml Loading commit data...
Gir_Gst.toml Loading commit data...
Gir_GstApp.toml Loading commit data...
Gir_GstAudio.toml Loading commit data...
Gir_GstBase.toml Loading commit data...
Gir_GstNet.toml Loading commit data...
Gir_GstPlayer.toml Loading commit data...
Gir_GstRtsp.toml Loading commit data...
Gir_GstRtspServer.toml Loading commit data...
Gir_GstSdp.toml Loading commit data...
Gir_GstVideo.toml Loading commit data...
LICENSE-APACHE Loading commit data...
LICENSE-MIT Loading commit data...
README.md Loading commit data...