diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-04 19:51:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-04 19:51:03 +0000 |
| commit | 288e7e64e9be84b8dbe11f5acb490e64a29d9378 (patch) | |
| tree | 4535e3c21804444e50eb2fbbf03699fb941a40bd /src/lib/util.cc | |
| parent | 3ba89a00859e8108017a0d6f2275f0658173b80f (diff) | |
| parent | 3e915b00219ee8c97e50bbc775d90d0dddce87b6 (diff) | |
Merge master.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index bb33eb431..b69581eba 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -57,11 +57,7 @@ extern "C" { #include "format.h" #include "dcp_content_type.h" #include "filter.h" -#include "screen.h" #include "sound_processor.h" -#ifndef DVDOMATIC_DISABLE_PLAYER -#include "player_manager.h" -#endif using namespace std; using namespace boost; @@ -192,34 +188,6 @@ stacktrace (ostream& out, int levels) } #endif -/** @return Version of vobcopy that is on the path (and hence that we will use) */ -static string -vobcopy_version () -{ - FILE* f = popen ("vobcopy -V 2>&1", "r"); - if (f == 0) { - throw EncodeError ("could not run vobcopy to check version"); - } - - string version = "unknown"; - - while (!feof (f)) { - char buf[256]; - if (fgets (buf, sizeof (buf), f)) { - string s (buf); - vector<string> b; - split (b, s, is_any_of (" ")); - if (b.size() >= 2 && b[0] == "Vobcopy") { - version = b[1]; - } - } - } - - pclose (f); - - return version; -} - /** @param v Version as used by FFmpeg. * @return A string representation of v. */ @@ -237,7 +205,6 @@ dependency_version_summary () { stringstream s; s << "libopenjpeg " << opj_version () << ", " - << "vobcopy " << vobcopy_version() << ", " << "libavcodec " << ffmpeg_version_to_string (avcodec_version()) << ", " << "libavfilter " << ffmpeg_version_to_string (avfilter_version()) << ", " << "libavformat " << ffmpeg_version_to_string (avformat_version()) << ", " @@ -257,17 +224,6 @@ seconds (struct timeval t) return t.tv_sec + (double (t.tv_usec) / 1e6); } - -#ifdef DVDOMATIC_POSIX -void -sigchld_handler (int, siginfo_t* info, void *) -{ -#ifndef DVDOMATIC_DISABLE_PLAYER - PlayerManager::instance()->child_exited (info->si_pid); -#endif -} -#endif - /** Call the required functions to set up DVD-o-matic's static arrays, etc. * Must be called from the UI thread, if there is one. */ @@ -281,14 +237,6 @@ dvdomatic_setup () SoundProcessor::setup_sound_processors (); ui_thread = this_thread::get_id (); - -#ifdef DVDOMATIC_POSIX - struct sigaction sa; - sa.sa_flags = SA_SIGINFO; - sigemptyset (&sa.sa_mask); - sa.sa_sigaction = sigchld_handler; - sigaction (SIGCHLD, &sa, 0); -#endif } /** @param start Start position for the crop within the image. |
