fixup! GST: Add caps selector
WIP Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
39c1790740
commit
f68242c46d
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,8 @@ public class EyeNeko.Gstreamer : Object {
|
|||
available_caps.remove_all ();
|
||||
for (uint i = 0; i < caps.get_size (); i++) {
|
||||
var cap = new FriendlyCaps.with_struct (caps.get_structure (i));
|
||||
if (cap.pixelformat != "RGB")
|
||||
continue;
|
||||
available_caps.append (cap);
|
||||
best_caps = (best_caps == null || cap.is_res_better (best_caps)) ? cap : best_caps;
|
||||
}
|
||||
|
@ -57,7 +59,6 @@ public class EyeNeko.Gstreamer : Object {
|
|||
foreach (var device in pwprovider.get_devices ()) {
|
||||
if (device.has_classes ("Video/Source")) {
|
||||
cameras += new Camera (device);
|
||||
var id = Value (typeof (string));
|
||||
message ("Camera appended %s:", device.display_name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue