File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
data/scripts/Linux-AppImage Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -197,12 +197,14 @@ libavcodec.so" | grep "$1" | grep -v 'not found' | awk '{print $3}'
197197 AI_LIBAVCODEC_LIB=$( get_ai_lib_path libavcodec.so)
198198 check_libva_deps () { # check if all liva*.so satisfied from sys
199199 [ -n " $1 " ] || return 1
200- ! LD_TRACE_LOADED_OBJECTS=1 " $LOADER " " $1 " |
200+ ! LD_TRACE_LOADED_OBJECTS=1 " $LOADER " " $1 " 2> /dev/null |
201201 grep -q ' libva.*not found'
202202 }
203203 check_libva_deps " $AI_LIBAVCODEC_LIB " && check_libva_deps \
204204 " $( get_ai_lib_path libavutil.so) " || return 1
205- LIBVA_LIB=$( LD_TRACE_LOADED_OBJECTS=1 " $LOADER " " $AI_LIBAVCODEC_LIB " | grep libva.so | grep -v ' not found' | awk ' {print $3}' )
205+ LIBVA_LIB=$( LD_TRACE_LOADED_OBJECTS=1 " $LOADER " " $AI_LIBAVCODEC_LIB " \
206+ 2> /dev/null | grep libva.so | grep -v ' not found' |
207+ awk ' {print $3}' )
206208 [ -n " $LIBVA_LIB " ] || return 1
207209 libva_libs=$LIBVA_LIB
208210 # add also libva-drm, libva-x11 if present
@@ -214,7 +216,8 @@ libavcodec.so" | grep "$1" | grep -v 'not found' | awk '{print $3}'
214216 done
215217 # preload also VDPAU
216218 libvdpau_lib=$( LD_TRACE_LOADED_OBJECTS=1 " $LOADER " " $AI_LIBAVCODEC_LIB " \
217- | grep libvdpau.so | grep -v ' not found' | awk ' {print $3}' )
219+ 2> /dev/null | grep libvdpau.so | grep -v ' not found' |
220+ awk ' {print $3}' )
218221 if [ -n " $libvdpau_lib " ]; then
219222 libva_libs=$libva_libs :$libvdpau_lib
220223 fi
You can’t perform that action at this time.
0 commit comments