diff options
author | GhostNaN <GhostNaN@protonmail.com> | 2024-01-27 14:16:19 -0500 |
---|---|---|
committer | GhostNaN <GhostNaN@protonmail.com> | 2024-01-27 14:16:19 -0500 |
commit | 4049f9d4773c1c21dd6a58125be0a72b54463dc0 (patch) | |
tree | 88f991d6d0a0c3d2fe6d338df5079c7acf6be5ec | |
parent | 99080dc4b5589cff73dd401166209b6182f6162b (diff) |
Allow holder to have no video for --playlist option
-rw-r--r-- | src/holder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/holder.c b/src/holder.c index 8664b0d..ae3c603 100644 --- a/src/holder.c +++ b/src/holder.c @@ -331,8 +331,8 @@ static void parse_command_line(int argc, char **argv, struct wl_state *state) { } } - // Need at least a display and video - if (optind + 1 >= argc) { + // Need at least a output + if (optind >= argc) { fprintf(stderr, "%s", usage); exit(EXIT_FAILURE); } |