We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f05a5 commit 860472aCopy full SHA for 860472a
1 file changed
libvisual/tools/lv-tool/lv-tool.cpp
@@ -32,6 +32,7 @@
32
#include <atomic>
33
#include <stdexcept>
34
#include <iostream>
35
+#include <unordered_set>
36
#include <string>
37
#include <cstdio>
38
#include <cstdlib>
@@ -56,6 +57,11 @@
56
57
58
namespace {
59
60
+ const std::unordered_set<std::string> actors_to_skip {
61
+ "gdkpixbuf",
62
+ "gstreamer"
63
+ };
64
+
65
std::string actor_name;
66
std::string input_name = DEFAULT_INPUT;
67
std::string morph_name = DEFAULT_MORPH;
@@ -390,8 +396,7 @@ namespace {
390
396
391
397
// Always skip actors that are of little interest to end users,
392
398
// while allowing explicit "--actor (gdkpixbuf|gstreamer)".
393
- if (strcmp (new_name, "gdkpixbuf") == 0 \
394
- || strcmp (new_name, "gstreamer") == 0) {
399
+ if (actors_to_skip.contains (new_name)) {
395
400
return cycle_actor_name (new_name, dir);
401
}
402
0 commit comments