fixup! GST: Add caps selector
WIP Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
f68242c46d
commit
bb7fa950c1
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ public class EyeNeko.Gstreamer : Object {
|
||||||
available_caps.remove_all ();
|
available_caps.remove_all ();
|
||||||
for (uint i = 0; i < caps.get_size (); i++) {
|
for (uint i = 0; i < caps.get_size (); i++) {
|
||||||
var cap = new FriendlyCaps.with_struct (caps.get_structure (i));
|
var cap = new FriendlyCaps.with_struct (caps.get_structure (i));
|
||||||
if (cap.pixelformat != "RGB")
|
if (cap.pixelformat != "RGB" || available_caps.n_items > uint.parse (Env.get_variable_or ("FMT_N", "10")))
|
||||||
continue;
|
continue;
|
||||||
available_caps.append (cap);
|
available_caps.append (cap);
|
||||||
best_caps = (best_caps == null || cap.is_res_better (best_caps)) ? cap : best_caps;
|
best_caps = (best_caps == null || cap.is_res_better (best_caps)) ? cap : best_caps;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue