ffscale: fix compilation when ORC is missing
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 19 Apr 2012 12:45:42 +0000 (14:45 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 19 Apr 2012 12:45:42 +0000 (14:45 +0200)
Fix set but not used compiler error when ORC is missing.

ext/libswscale/gstffmpegscale.c

index 050a962b88245697bf0bd412653b5c19d15ac7c7..c7a708727b4172a33baa363a473f00b38320ec08 100644 (file)
@@ -594,7 +594,9 @@ gst_ffmpegscale_set_caps (GstBaseTransform * trans, GstCaps * incaps,
     GstCaps * outcaps)
 {
   GstFFMpegScale *scale = GST_FFMPEGSCALE (trans);
+#ifdef HAVE_ORC
   guint mmx_flags, altivec_flags;
+#endif
   gint swsflags;
   GstVideoFormat in_format, out_format;
   gboolean ok;
@@ -638,12 +640,9 @@ gst_ffmpegscale_set_caps (GstBaseTransform * trans, GstCaps * incaps,
       | (mmx_flags & ORC_TARGET_MMX_3DNOW ? SWS_CPU_CAPS_3DNOW : 0)
       | (altivec_flags & ORC_TARGET_ALTIVEC_ALTIVEC ? SWS_CPU_CAPS_ALTIVEC : 0);
 #else
-  mmx_flags = 0;
-  altivec_flags = 0;
   swsflags = 0;
 #endif
 
-
   scale->ctx = sws_getContext (scale->in_width, scale->in_height,
       scale->in_pixfmt, scale->out_width, scale->out_height, scale->out_pixfmt,
       swsflags | gst_ffmpegscale_method_flags[scale->method], NULL, NULL, NULL);
@@ -817,9 +816,7 @@ plugin_init (GstPlugin * plugin)
 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
     GST_VERSION_MINOR,
     "ffvideoscale",
-    "videoscaling element (" FFMPEG_SOURCE ")",
-    plugin_init,
-    PACKAGE_VERSION,
+    "videoscaling element (" FFMPEG_SOURCE ")", plugin_init, PACKAGE_VERSION,
 #ifdef GST_FFMPEG_ENABLE_LGPL
     "LGPL",
 #else