mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 11:20:56 +00:00
vf_dlopen ildetect: make the wrapper shell script more robust
This commit is contained in:
parent
dcd36c79c7
commit
fb04351f76
@ -17,16 +17,11 @@ testfun()
|
||||
{
|
||||
${MPV:-mpv} "$@" \
|
||||
-vf dlopen="$MYDIR/ildetect.so" \
|
||||
-o /dev/null -of nut -ovc rawvideo -no-audio \
|
||||
| grep "^ildetect:"
|
||||
-o /dev/null -of rawvideo -ofopts-clr -ovc rawvideo -ovcopts-clr -no-audio \
|
||||
| tee /dev/stderr | grep "^ildetect:"
|
||||
}
|
||||
|
||||
out=`testfun "$@"`
|
||||
echo
|
||||
echo
|
||||
echo "$out"
|
||||
echo
|
||||
echo
|
||||
case "$out" in
|
||||
*"probably: PROGRESSIVE"*)
|
||||
${MPV:-mpv} "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user