From e7467461200149488359fab70bac93366c9c8495 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 19 Apr 2012 15:35:48 +0200 Subject: [PATCH] postproc: fix compilation when ORC is missing Fix 'set but not used' compiler error when ORC is missing. --- ext/libpostproc/gstpostproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/libpostproc/gstpostproc.c b/ext/libpostproc/gstpostproc.c index 963b77d..41ff8b7 100644 --- a/ext/libpostproc/gstpostproc.c +++ b/ext/libpostproc/gstpostproc.c @@ -281,8 +281,10 @@ gst_ffmpeg_log_callback (void *ptr, int level, const char *fmt, va_list vl) static void change_context (GstPostProc * postproc, gint width, gint height) { +#ifdef HAVE_ORC guint mmx_flags; guint altivec_flags; +#endif gint ppflags; GST_DEBUG_OBJECT (postproc, "change_context, width:%d, height:%d", @@ -302,8 +304,6 @@ change_context (GstPostProc * postproc, gint width, gint height) | (altivec_flags & ORC_TARGET_ALTIVEC_ALTIVEC ? PP_CPU_CAPS_ALTIVEC : 0); #else - mmx_flags = 0; - altivec_flags = 0; ppflags = 0; #endif -- 2.7.4