fixup! GST: Add caps selector
WIP Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
3688ede906
commit
9d25ecfe2e
2 changed files with 10 additions and 3 deletions
|
@ -38,9 +38,6 @@ public class EyeNeko.Gstreamer : Object {
|
||||||
uint pos;
|
uint pos;
|
||||||
available_caps.find (best_caps, out pos);
|
available_caps.find (best_caps, out pos);
|
||||||
caps_selecton_model.set_selected (pos);
|
caps_selecton_model.set_selected (pos);
|
||||||
for (var i = 0; i < available_caps.n_items; i++) {
|
|
||||||
message ("%s", ((FriendlyCaps) available_caps.get_item (i)).to_string ());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Camera : Object {
|
public class Camera : Object {
|
||||||
|
|
|
@ -136,5 +136,15 @@ public class EyeNeko.Window : Adw.ApplicationWindow {
|
||||||
Gstreamer.instance.start_stream_from (null);
|
Gstreamer.instance.start_stream_from (null);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var ts = new TimeoutSource.seconds (5);
|
||||||
|
ts.set_callback (() => {
|
||||||
|
for (var i = 0; i < Gstreamer.instance.available_caps.n_items; i++) {
|
||||||
|
message ("%s", ((FriendlyCaps) Gstreamer.instance.available_caps.get_item (i)).to_string ());
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
ts.attach ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue