Sebastian Dröge
|
9ec06199b1
|
gtk4: Reset app context and display if GL context creation fails
No need to keep them around and that way we either have all 3 values set
or none of them.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1032>
|
2022-12-29 11:13:25 +02:00 |
|
Sebastian Dröge
|
4ee70913bd
|
gtk4: Reduce number of unwraps during GL context creation and query handling
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1032>
|
2022-12-29 11:13:25 +02:00 |
|
Jordan Petridis
|
cf0ba40115
|
video/gtk4: Fix typo in info logs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1030>
|
2022-12-29 02:59:26 +00:00 |
|
Nirbheek Chauhan
|
9ee7118bf6
|
gtk4: Remove 'gst' prefix from another debug category
Missed it last time. Caught all of them this time. Continuation from:
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1029
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1025>
|
2022-12-28 23:55:10 +05:30 |
|
Nirbheek Chauhan
|
06123d74ba
|
gtk4: Use GL implicitly without the gst_gl feature on macOS
We already require gstreamer-gl as a dependency on macOS, so reflect
that in the code too.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1025>
|
2022-12-28 23:55:10 +05:30 |
|
Sebastian Dröge
|
4fe0786bbd
|
gtk4: Add support for GL on macOS
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1025>
|
2022-12-28 23:55:10 +05:30 |
|
Nirbheek Chauhan
|
ae9ac872c0
|
gtk4: Remove 'gst' from gtksink debug category name
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1029>
|
2022-12-28 19:38:57 +05:30 |
|
Sebastian Dröge
|
ca17c9bc4f
|
gtk4: Release GStreamer GL context and display when going back to NULL state
And acquire it again next time when going to READY state.
Also clean up the whole GL context initialization.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1024>
|
2022-12-22 22:56:48 +00:00 |
|
Sebastian Dröge
|
1026949b2b
|
gtk4: Use glib::ThreadGuard instead of the fragile crate
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/272
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1024>
|
2022-12-22 22:56:48 +00:00 |
|
Sebastian Dröge
|
52764e140e
|
gtk4: Don't try to use GL mapped video frames as raw RGB memory
This will fail badly because the memory pointers are actually GL texture
IDs, however this case can't really happen in practice so simply assert
on this.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1024>
|
2022-12-22 22:56:48 +00:00 |
|
Sebastian Dröge
|
30e501e7b0
|
gtk4: Don't error out when the main context channel does not exist anymore when rendering
But instead return flushing to shut down silently.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1024>
|
2022-12-22 22:56:48 +00:00 |
|
Sebastian Dröge
|
0c8e69ed7c
|
gtk4: Flush frames from the paintable when shutting down the sink
Otherwise it will continue showing the last frames forever and keep
around the frames forever instead of rendering black.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/281
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1024>
|
2022-12-22 22:56:48 +00:00 |
|
Sebastian Dröge
|
a077ecba85
|
gtk4: Deactivate application GL context again after fill_info()
It does not need to be activate anymore, and keeping it active can cause
problems.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1001>
|
2022-12-12 10:51:15 +02:00 |
|
Jordan Petridis
|
37b0dab0e8
|
gtk4: Deactivate the context if we fail to fill_info
Avoid leaving the context activated if we end up erroring out.
Similar to https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3492
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1001>
|
2022-12-12 10:51:09 +02:00 |
|
Sebastian Dröge
|
599d3a4d8a
|
gtk4: Make GL support fully optional
Don't depend on gstreamer-gl if it's not enabled, and don't try doing
anything with the GDK GL context at all.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/995>
|
2022-11-30 11:59:53 +02:00 |
|
Jordan Petridis
|
975f0141be
|
video/gtk4: Implement support for GLTextures when possible.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/588>
|
2022-11-29 21:18:46 +02:00 |
|
Jordan Petridis
|
51c34267a9
|
video/gtk4: Restrict visibility of struct related to the Frame
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/588>
|
2022-11-29 21:06:12 +02:00 |
|
Jordan Petridis
|
ea6c59e5e9
|
video/gtk4: Rename Object types and struct to something simpler
Avoid the confusion caused by SinkPaintable and PaintableSink,
and instead refer to the objects as Paintable for the GdkPaintable
subclass or PaintalbeSink for the gst element.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/588>
|
2022-11-29 21:06:12 +02:00 |
|
Sebastian Dröge
|
a8250abbf1
|
Fix various new clippy warnings
|
2022-11-01 10:27:48 +02:00 |
|
Sebastian Dröge
|
9a68f6e221
|
Move from imp.instance() to imp.obj()
It's doing the same thing and is shorter.
|
2022-10-23 23:08:46 +03:00 |
|
Sebastian Dröge
|
f045099fc1
|
Fix GObject type names, GStreamer debug category names and element factory names
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/198
|
2022-10-23 20:46:08 +03:00 |
|
Sebastian Dröge
|
7ee4afacf4
|
Change *Impl trait methods to only take &self and not Self::Type in addition
|
2022-10-10 15:03:25 +03:00 |
|
Sebastian Dröge
|
4c57a97d4d
|
Update for glib::Object::new() API changes
|
2022-10-07 23:54:53 +03:00 |
|
Sebastian Dröge
|
1a40186485
|
Update for GLib ParamSpec builder API changes
|
2022-09-05 11:45:47 +03:00 |
|
Vivia Nikolaidou
|
5606111345
|
plugins: Simplify code using ParamSpecBuilder
|
2022-08-22 17:58:43 +03:00 |
|
Sebastian Dröge
|
b38f6cc731
|
Remove now unnecessary Send+Sync impls for element/etc subclasses
This is now automatically implemented.
|
2022-02-28 18:56:58 +02:00 |
|
François Laignel
|
422ea740ca
|
Update to gst::_log_macro_
See the details:
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/980
|
2022-02-21 20:50:01 +01:00 |
|
Sebastian Dröge
|
858865b731
|
gtk4: Attach main context receiver from the main context's thread
Otherwise it will fail if the sink's state is changed from a different
thread.
See https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio/-/issues/2
|
2022-02-04 13:51:31 +02:00 |
|
Julian Sparber
|
e419c18a87
|
gtk4: Implement Default for PaintableSink
|
2022-01-31 14:11:03 +00:00 |
|
Sebastian Dröge
|
f44b86cd30
|
Simplify some code around event/query views
|
2022-01-22 12:18:02 +02:00 |
|
Sebastian Dröge
|
65fcd55160
|
Update for event/message/query view API changes
|
2022-01-19 15:07:45 +02:00 |
|
Sebastian Dröge
|
763ad0cb18
|
Rename self_ variables to imp for consistency
|
2022-01-17 20:09:18 +02:00 |
|
Sebastian Dröge
|
b2d0172422
|
Replace Foo::from_instance(foo) with foo.imp()
|
2022-01-17 19:36:41 +02:00 |
|
Sebastian Dröge
|
81f5f0f60c
|
Fix various clippy warnings
|
2022-01-12 19:51:08 +02:00 |
|
Sebastian Dröge
|
3ed9e291c2
|
Update for decide/propose_allocation() API changes
|
2021-12-06 19:11:24 +02:00 |
|
Sebastian Dröge
|
55aad51141
|
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
|
2021-11-20 14:31:06 +02:00 |
|
Sebastian Dröge
|
d9bda62a47
|
Update for GLib/GStreamer API changes
And clean up a lot of related property/caps/structure code.
|
2021-11-06 09:34:10 +02:00 |
|
Sebastian Dröge
|
0a7d1639e7
|
Update to Rust edition 2021 and minimum supported Rust version to 1.56
|
2021-10-31 17:40:05 +02:00 |
|
Sebastian Dröge
|
b9541b2ca4
|
Update for GstObjectImpl API change
|
2021-10-23 12:31:33 +03:00 |
|
Sebastian Dröge
|
70f0aa9758
|
gtk4: Add support for rendering overlay composition rectangles directly via GTK
|
2021-10-17 19:03:24 +00:00 |
|
Sebastian Dröge
|
cf637d0288
|
gtk4: Add gst_video::VideoMeta to the allocation metas in propose_allocation()
|
2021-10-16 15:05:18 +03:00 |
|
Bilal Elmoussaoui
|
30796fbe07
|
Add a GTK4 paintable sink plugin
Co-authored-by: Sebastian Dröge <sebastian@centricular.com>
Co-authored-by: Jordan Petridis <jordan@centricular.com>
|
2021-10-13 12:28:51 +03:00 |
|