1. 19 Mar, 2018 3 commits
  2. 16 Mar, 2018 3 commits
  3. 14 Mar, 2018 1 commit
  4. 07 Mar, 2018 1 commit
  5. 02 Mar, 2018 2 commits
  6. 22 Feb, 2018 1 commit
  7. 20 Feb, 2018 1 commit
  8. 18 Feb, 2018 1 commit
  9. 17 Feb, 2018 1 commit
  10. 16 Feb, 2018 1 commit
    • 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
  11. 06 Feb, 2018 1 commit
  12. 05 Feb, 2018 1 commit
  13. 29 Jan, 2018 4 commits
    • François Laignel's avatar
      Event & Message: factorize common attributes in generic builders · da924e5d
      François Laignel authored
      Concrete events and messages share common attributes which can be factorized in generic builder `struct`s. This reduces noise in the concrete implementations.
      da924e5d
    • François Laignel's avatar
      Event, Message & Query: allow dereferencing concrete types to access generic type methods · 2d1218e6
      François Laignel authored
      Implement `deref` for concrete derivatives of `Event`, `Message` and `Query`. This allows accessing generic methods such as `is_sticky` for events, `get_seqnum` for messages or `is_serialized` for queries and `get_structure` for all.
      2d1218e6
    • François Laignel's avatar
      MessageBuilder: comment out other_fields related methods until GStreamer v1.14 is released · 86812c1a
      François Laignel authored
      These methods are commented out in order to maintain consistency between messages with and without arguments. It will be restored and conditioned to feature "v1_14" when GStreamer v1.14 is released.
      86812c1a
    • François Laignel's avatar
      Fix building argument-less messages · 3c65a500
      François Laignel authored
      Building an argument-less message such as eos yields an assertion failure due to the inner structure being null. The short term solution consists in checking that the inner `structure` is not `null` before attempting to insert `other_fields`. The consequence is that `others_fields` defined for argument-less messages will be ignored. A correction will be applied when GStreamer 1.14 is released thank to the introduction of `gst_message_writable_structure` (see https://bugzilla.gnome.org/show_bug.cgi?id=792928). Due to the dependency on GStreamer 1.14, the correction will be only available under the activation of a feature "v1_14".
      
      Events are not affected as the build method the availability of `gst_event_writable_structure` and this function "will never return NULL". However, we can avoid a `structure` allocation for argument-less messages without `other_fields`.
      3c65a500
  14. 25 Jan, 2018 1 commit
  15. 03 Jan, 2018 1 commit
  16. 30 Dec, 2017 3 commits
  17. 26 Dec, 2017 1 commit
  18. 23 Dec, 2017 1 commit
  19. 22 Dec, 2017 2 commits
  20. 20 Dec, 2017 10 commits