• 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) {
        } else {
Last commit
Last update
src Loading commit data...
Cargo.toml Loading commit data...