Fix
All checks were successful
PostmarketOS Build / Prepare (push) Successful in 10s
PostmarketOS Build / Build for aarch64 (push) Successful in 43s
PostmarketOS Build / Build for x86_64 (push) Successful in 13s

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-21 19:58:02 +03:00
parent e3d22a9f54
commit 751f9e5330
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582

View file

@ -102,6 +102,8 @@ public class EyeNeko.Gstreamer : Object {
} }
public void start_stream_from (Camera? camera) { public void start_stream_from (Camera? camera) {
message ("Stream stop");
camerabin.set_state (Gst.State.NULL);
if (camera == null) if (camera == null)
return; return;
if (current_camera != camera) { if (current_camera != camera) {
@ -109,12 +111,11 @@ public class EyeNeko.Gstreamer : Object {
set_up_caps (camera.device); set_up_caps (camera.device);
} }
var caps = ((FriendlyCaps) caps_selecton_model.selected_item).to_caps ().to_string (); var caps = ((FriendlyCaps) caps_selecton_model.selected_item).to_caps ().to_string ();
message ("Starting stream with %s", caps);
camerabin.set_state (Gst.State.NULL);
camerasrc_wrapper.set_property camerasrc_wrapper.set_property
("video-source", ("video-source",
new Elements.CameraSrc (camera.device.create_element (null), Gst.Caps.from_string (Env.get_variable_or ("CAM_CAPS", caps)))); new Elements.CameraSrc (camera.device.create_element (null), Gst.Caps.from_string (Env.get_variable_or ("CAM_CAPS", caps))));
camerabin.set_state (Gst.State.PLAYING); camerabin.set_state (Gst.State.PLAYING);
message ("Started stream with %s", caps);
} }
private void add_enc_profile () { private void add_enc_profile () {