--- libdv-0.104.old/playdv/playdv.c +++ libdv-0.104/playdv/playdv.c @@ -325,7 +325,10 @@ filename = poptGetArg(optCon); if (rc < -1) goto bad_arg; if((filename == NULL) || !(poptPeekArg(optCon) == NULL)) + { + if (isatty (fileno (stdin))) goto display_version; filename = "-"; + } poptFreeContext(optCon); #else /* No popt, no usage and no options! HINT: get popt if you don't