summaryrefslogtreecommitdiffstats
path: root/ext/mpeg2enc/gstmpeg2encpicturereader.hh
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mpeg2enc/gstmpeg2encpicturereader.hh')
-rw-r--r--ext/mpeg2enc/gstmpeg2encpicturereader.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/mpeg2enc/gstmpeg2encpicturereader.hh b/ext/mpeg2enc/gstmpeg2encpicturereader.hh
index 89fb58d8..61b52b5c 100644
--- a/ext/mpeg2enc/gstmpeg2encpicturereader.hh
+++ b/ext/mpeg2enc/gstmpeg2encpicturereader.hh
@@ -25,6 +25,10 @@
#include <gst/gst.h>
#include <picturereader.hh>
+#if GST_MJPEGTOOLS_API >= 10900
+#include <imageplanes.hh>
+#endif
+
class GstMpeg2EncPictureReader : public PictureReader {
public:
@@ -37,7 +41,7 @@ public:
protected:
/* read a frame */
-#ifdef GST_MJPEGTOOLS_19x
+#if GST_MJPEGTOOLS_API >= 10900
bool LoadFrame (ImagePlanes &image);
#else
bool LoadFrame ();