summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-17 20:29:24 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-17 20:29:24 +0100
commit21e682c5eb1e0957e8fdae155028be65532ed96e (patch)
treed2bb74b6f3a63100ccded7ae37f37c10c9470d95 /src/lib/util.cc
parentc7c8c894df8c2bb98aeed84011dd28da94afa392 (diff)
Use libdcp.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index b8531e26b..1348d307e 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -216,37 +216,6 @@ audio_sample_format_from_string (string s)
return AV_SAMPLE_FMT_NONE;
}
-/** @return Version of OpenDCP that is on the path (and hence that we will use) */
-static string
-opendcp_version ()
-{
- FILE* f = popen ("opendcp_xml", "r");
- if (f == 0) {
- throw EncodeError ("could not run opendcp_xml to check version");
- }
-
- string version = "unknown";
-
- while (!feof (f)) {
- char* buf = 0;
- size_t n = 0;
- ssize_t const r = getline (&buf, &n, f);
- if (r > 0) {
- string s (buf);
- vector<string> b;
- split (b, s, is_any_of (" "));
- if (b.size() >= 3 && b[0] == "OpenDCP" && b[1] == "version") {
- version = b[2];
- }
- free (buf);
- }
- }
-
- pclose (f);
-
- return version;
-}
-
/** @return Version of vobcopy that is on the path (and hence that we will use) */
static string
vobcopy_version ()
@@ -295,7 +264,6 @@ dependency_version_summary ()
{
stringstream s;
s << "libopenjpeg " << opj_version () << ", "
- << "opendcp " << opendcp_version () << ", "
<< "vobcopy " << vobcopy_version() << ", "
<< "libswresample " << ffmpeg_version_to_string (swresample_version()) << ", "
<< "libavcodec " << ffmpeg_version_to_string (avcodec_version()) << ", "