mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
ffscale: fix compilation when ORC is missing
Fix set but not used compiler error when ORC is missing.
This commit is contained in:
parent
d417f99cd7
commit
b053a50508
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue