ROOTPLOIT
Server: nginx/1.18.0
System: Linux snslocalproxy 6.8.0-149-generic #149~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 28 20:58:45 UTC x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //snap/gnome-46-2404/177/usr/share/aclocal/gst-element-check-1.0.m4
dnl Perform a check for a GStreamer element using gst-inspect-x.y
dnl
dnl GST_ELEMENT_CHECK(ELEMENT-NAME, MIN-VERSION, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
dnl
dnl ELEMENT-NAME        : element factory name (mandatory)
dnl MIN-VERSION         : minimum version required, e.g. 1.0 or 1.0.5 (mandatory)
dnl ACTION-IF_FOUND     : action if element exists and is of the desired version
dnl ACTION-IF-NOT-FOUND : action if element does not exist or is too old
dnl
dnl gstapiversion=`echo $2 | tr '.' '\n' | head -n 2 | tr '\n' '.' | sed 's/\.$//'`

AC_DEFUN([GST_ELEMENT_CHECK],
[
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])

  gstapiversion=`echo "$2" | while IFS=. read a b; do echo "$a.0"; done`
  gsttoolsdir=`$PKG_CONFIG --variable=toolsdir gstreamer-$gstapiversion`
  if test "x$gsttoolsdir" != "x"; then
    gstinspect="$gsttoolsdir/gst-inspect-$gstapiversion"
    AC_MSG_CHECKING(GStreamer $gstapiversion element $1 >= $2)
    if [ $gstinspect --exists --atleast-version=$2 $1 ]; then
      AC_MSG_RESULT([found])
      $3
    else
      if [ $gstinspect --exists $1 ]; then
        AC_MSG_RESULT([found, but too old])
      else
        AC_MSG_RESULT([not found])
      fi
      $4
    fi
  fi
])