gst-ffmpeg: postproc: fix compilation when ORC is missing
Wim Taymans
wtay at kemper.freedesktop.org
Thu Apr 19 06:37:56 PDT 2012
Module: gst-ffmpeg
Branch: master
Commit: e7467461200149488359fab70bac93366c9c8495
URL: http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=e7467461200149488359fab70bac93366c9c8495
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Thu Apr 19 15:35:48 2012 +0200
postproc: fix compilation when ORC is missing
Fix 'set but not used' compiler error when ORC is missing.
---
ext/libpostproc/gstpostproc.c | 4 ++--
1 files 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
More information about the gstreamer-commits
mailing list