summaryrefslogtreecommitdiffstats
path: root/multimedia/gst-plugins-bad/check_for_mjpegtools-2.0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gst-plugins-bad/check_for_mjpegtools-2.0.patch')
-rw-r--r--multimedia/gst-plugins-bad/check_for_mjpegtools-2.0.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/multimedia/gst-plugins-bad/check_for_mjpegtools-2.0.patch b/multimedia/gst-plugins-bad/check_for_mjpegtools-2.0.patch
new file mode 100644
index 0000000000..771d757438
--- /dev/null
+++ b/multimedia/gst-plugins-bad/check_for_mjpegtools-2.0.patch
@@ -0,0 +1,26 @@
+From 407b02578689804dc6bc47e53be9e87cc1b25597 Mon Sep 17 00:00:00 2001
+From: Götz Waschk <waschk@mandriva.org>
+Date: Tue, 24 May 2011 13:42:44 +0000
+Subject: mpeg2enc: support mjpegtools 2.0
+
+This adds conditional includes for the renamed headers in mjpegtools 2.0.
+Fixes: #650970.
+---
+diff --git a/ext/mpeg2enc/gstmpeg2encoder.cc b/ext/mpeg2enc/gstmpeg2encoder.cc
+index acfda50..31f1a30 100644
+--- a/ext/mpeg2enc/gstmpeg2encoder.cc
++++ b/ext/mpeg2enc/gstmpeg2encoder.cc
+@@ -26,7 +26,10 @@
+
+ #include <mpegconsts.h>
+ #include <quantize.hh>
+-#if GST_MJPEGTOOLS_API >= 10900
++#if GST_MJPEGTOOLS_API >= 10903
++#include <ontheflyratectlpass1.hh>
++#include <ontheflyratectlpass2.hh>
++#elif GST_MJPEGTOOLS_API >= 10900
+ #include <ontheflyratectl.hh>
+ #include <pass1ratectl.hh>
+ #include <pass2ratectl.hh>
+--
+cgit v0.9.0.2-2-gbebe