diff --git a/vhook/drawtext.c b/vhook/drawtext.c index 5001c4b5fa1e246e8627fe0869554078e60c5768..d3ca767fe527aec3c2e7621dbe429f022ca31069 100644 --- a/vhook/drawtext.c +++ b/vhook/drawtext.c @@ -172,7 +172,7 @@ int Configure(void **ctxp, int argc, char *argv[]) ci->outline = 0; ci->text_height = 0; - optind = 0; + optind = 1; while ((c = getopt(argc, argv, "f:t:T:x:y:s:c:C:bo")) > 0) { switch (c) { case 'f': diff --git a/vhook/fish.c b/vhook/fish.c index 1571cf9b95a13b9767d30b373cd8eee53e020c70..be23dc644aaef61646e69e34406b22228f28e739 100644 --- a/vhook/fish.c +++ b/vhook/fish.c @@ -124,7 +124,7 @@ int Configure(void **ctxp, int argc, char *argv[]) *ctxp = av_mallocz(sizeof(ContextInfo)); ci = (ContextInfo *) *ctxp; - optind = 0; + optind = 1; ci->dir = "/tmp"; ci->threshold = 100; diff --git a/vhook/imlib2.c b/vhook/imlib2.c index 1626f587d475b6a0978dcbe30ef4cf80b0fe40f8..7df4c0acad3ba84b83b2c6563e405895b6d1bef3 100644 --- a/vhook/imlib2.c +++ b/vhook/imlib2.c @@ -160,7 +160,7 @@ int Configure(void **ctxp, int argc, char *argv[]) ci->expr_x = "0.0"; ci->expr_y = "0.0"; - optind = 0; + optind = 1; /* Use ':' to split FONTPATH */ if (fp)