Commit graph

588 commits

Author SHA1 Message Date
Sebastian Dröge 82c022f882 Update versions to 0.11.6 2018-08-27 10:01:22 +03:00
Sebastian Dröge 3b2db07526 Update CHANGELOG.md for 0.11.6 2018-08-27 10:01:09 +03:00
Sebastian Dröge 64a4a55387 Implement Pad::sticky_events_foreach() 2018-08-27 09:25:10 +03:00
Sebastian Dröge 7b9daf3094 Add getter for the current pad mode 2018-08-27 09:25:02 +03:00
Arun Raghavan 12b5c2887f examples: Explicitly define [bin] section for discoverer 2018-08-27 09:24:14 +03:00
Sebastian Dröge 4959fae043 Implement Ord/PartialOrd on Seqnum 2018-08-27 09:23:15 +03:00
Philippe Normand bf4defb6a3 gstreamer: Implement deinit() function
This function is especially usefull when using the leaks tracer. It was removed
in commit e7a0543c.
2018-08-27 09:22:55 +03:00
Sebastian Dröge 5c2addb37b Fix build with two-phase-borrows/NLL 2018-08-27 09:20:51 +03:00
Sebastian Dröge f162735145 Update versions to 0.11.5 2018-07-24 15:53:24 +03:00
Sebastian Dröge 42a8aeeabb Update CHANGELOG.md for 0.11.5 2018-07-24 15:52:31 +03:00
Sebastian Dröge 8a4370022a Unref the message in sync bus handlers if Drop is returned 2018-07-24 15:36:10 +03:00
Sebastian Dröge 1855a1adbd Update versions to 0.11.4 2018-07-19 18:39:27 +03:00
Sebastian Dröge 75dec4b0b1 Update CHANGELOG.md for 0.11.4 2018-07-19 18:39:13 +03:00
Sebastian Dröge 9295137a10 Caps::subtract() does not take ownership of its arguments 2018-07-19 18:33:32 +03:00
Sebastian Dröge 3f8a087fd4 Gracefully return None in Caps::get_structure() if the index is too high 2018-07-19 18:31:50 +03:00
Sebastian Dröge 332ab9690f Fix typefind test if typefind factories without caps are available 2018-07-19 18:31:43 +03:00
Sebastian Dröge bc23d6a6cd Ensure that miniobjects are writable before creating a mutable borrow 2018-07-19 18:31:34 +03:00
François Laignel d20bceb68f 0.11: Fix memory issue building a Sample with an info Structure
This is a workaround to get the fix from PR #113 on branch 0.11 without
breaking the API.
2018-06-12 11:41:53 +03:00
Sebastian Dröge f9d7c57905 Update versions to 0.11.3 2018-06-08 10:25:41 +03:00
Sebastian Dröge e1cf5bf9dc Update CHANGELOG.md for 0.11.3 2018-06-08 10:25:24 +03:00
Sebastian Dröge f444a80e47 Re-add player_g_main_context_signal_dispatcher in player's lib.rs
This was accidentially removed while merging a change from master
2018-06-08 10:21:55 +03:00
Sebastian Dröge 25a887ad48 Print more fields in the VideoInfo fmt::Debug impl 2018-06-08 10:19:56 +03:00
Sebastian Dröge 6f59ceb5e1 Implement fmt::Debug for AudioInfo 2018-06-08 10:19:55 +03:00
Thibault Saunier 8671731002 Print pointer value when formatting debug strings 2018-06-08 10:09:54 +03:00
Thibault Saunier dd9b507e67 video_info: Implement fmt::Debug 2018-06-08 10:09:28 +03:00
Philippe Normand d4317c6445 GstPlayer: Expose PlayerVisualization name and description
The name is the identifier of the visualization that has to be passed to
gstreamer_player::Player::set_visualization().

Fixes #111
2018-06-04 20:49:02 +03:00
Sebastian Dröge f86941c14f Add Bus::remove_watch()
It was accidentially ignored before
2018-05-19 14:19:50 +03:00
Sebastian Dröge a81c45eaee Update versions to 0.11.2 2018-05-09 12:44:31 +03:00
Sebastian Dröge d13aa1ebb1 Update CHANGELOG.md for 0.11.2 2018-05-09 12:44:03 +03:00
Sebastian Dröge 3282c77a6d Further work-arounds for floating reference handling changes between 1.12 and 1.14
This fixes various memory-safety issues caused by broken reference
counting. We have to handle pre-1.14 and post-1.14 differently in
constructors.

See https://bugzilla.gnome.org/show_bug.cgi?id=743062#c30
2018-05-09 12:37:32 +03:00
Sebastian Dröge 5cb03ab2ef appsrc need-data and all appsink callbacks can only be called from a single thread at a time
As such, make them FnMut and remove the Sync requirement from them. We
can only do this for the callbacks and not the signals, because the
signals can in theory be emitted from anybody (outside the object!)
at any time.
2018-05-09 12:35:55 +03:00
Sebastian Dröge 8a6725cdb0 Also update version of gstreamer to 0.11.1 2018-04-07 20:33:27 +03:00
Sebastian Dröge b392092e8d Update versions to 0.11.1 2018-04-07 20:22:24 +03:00
Sebastian Dröge 7b772a2799 Update CHANGELOG.md for 0.11.1 2018-04-07 20:21:36 +03:00
Sebastian Dröge 6868eddcb6 Change Structure/StructureRef to_string() to the minimal required fix
And add a comment to why we need it. No other struct with a to_string()
function is affected.

https://github.com/sdroege/gstreamer-rs/issues/101
2018-04-07 13:41:06 +03:00
Sebastian Dröge 9427e75fa4 Add Display impl for StructureRef too 2018-04-07 13:41:05 +03:00
Sebastian Dröge 7c01e1e46f Fix infinite recursion in Structure::to_string()
Instead of StructureRef's to_string(), we were calling
ToString::to_string() in the Display impl. Which then called into itself
again.

Fixes https://github.com/sdroege/gstreamer-rs/issues/101
2018-04-07 13:41:03 +03:00
Guillaume Desmottes 92341e92ca WIP: test Structure string conversions 2018-04-07 13:41:00 +03:00
Sebastian Dröge a8e2fac47d Add CHANGELOG.md/README.md to pbutils 2018-03-20 13:03:26 +02:00
Sebastian Dröge 7dbe49f609 Update CHANGELOG.md for 0.11.0 2018-03-20 12:47:48 +02:00
Sebastian Dröge 4c13502eec Update versions of all dependencies and point to releases instead of GIT 2018-03-20 12:36:39 +02:00
Sebastian Dröge f3924399aa Update docs to 1.14.0 2018-03-20 12:36:29 +02:00
Sebastian Dröge 68ba4d23bb Update to using the master branch of gstreamer-sys again 2018-03-20 12:04:16 +02:00
Sebastian Dröge a6edcf4371 Update .travis.yml for the new 1.14 paths 2018-03-20 11:54:19 +02:00
Sebastian Dröge a33fd41d02 Regenerate everything with latest gir 2018-03-20 11:52:29 +02:00
Sebastian Dröge 185fdd0226 Update gir-files with gstreamer 1.14.0 2018-03-20 11:51:58 +02:00
François Laignel cd56d60352 Bus::get_pollfd generate doc for both unix & windows
There are different implementations and signatures for `get_pollfd` depending
on whether the target platform is unix or windows. When generating the doc,
we need both implementations to appear regardless of the target platform. This
commit is inspired by the way Rust `std` library deals with `process::Command`
OS dependent variants
(https://doc.rust-lang.org/std/process/struct.Command.html#impl-CommandExt).

Documentation can't be accurate though as we can't use the`std::os::windows`
on `unix` and vice versa. As a workaround a fake fd class matching the other
platform is declared.

This could be further enhanced once `#[doc(cfg(...))]` is stabilized
(https://github.com/rust-lang/rust/issues/43781) by declaring `#[doc(cfg(unix))]`
or `#[doc(cfg(windows))]` instead of the hard coded comments `This is supported
on **Windows/Unix** only`. Unfortunately, these comments disappear when
generating will `--all-features` because they are not part of the documentation
in the gir file.
2018-03-19 13:48:59 +02:00
François Laignel 406eb119d3 message: add test_other_fields
Fixes https://github.com/sdroege/gstreamer-rs/pull/93
2018-03-19 10:32:07 +02:00
Sebastian Dröge 3a755219f4 Add Promise bindings 2018-03-19 10:32:07 +02:00
Sebastian Dröge 0112d22804 Various manual 1.14 API additions and remove deprecated functions 2018-03-19 10:32:07 +02:00