summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-06-14 15:31:34 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-06-14 15:31:34 +0200
commit3d91d93f32672bfe52c3c54234fa40fe4d11128b (patch)
treeb3bd8afe344b078092b200ea0b4cd2026cb19758
parent899d2f0cecddf458b194b7492b4561d3ac296021 (diff)
ffmpeg: Call orc_init() before trying to get target flags
-rw-r--r--ext/libpostproc/gstpostproc.c5
-rw-r--r--ext/libswscale/gstffmpegscale.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ext/libpostproc/gstpostproc.c b/ext/libpostproc/gstpostproc.c
index 903ae04..7a78219 100644
--- a/ext/libpostproc/gstpostproc.c
+++ b/ext/libpostproc/gstpostproc.c
@@ -894,6 +894,11 @@ plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (postproc_debug, "postproc", 0,
"video postprocessing elements");
+
+#if HAVE_ORC
+ orc_init ();
+#endif
+
#ifndef GST_DISABLE_GST_DEBUG
av_log_set_callback (gst_ffmpeg_log_callback);
#endif
diff --git a/ext/libswscale/gstffmpegscale.c b/ext/libswscale/gstffmpegscale.c
index 0a52e00..7b971d2 100644
--- a/ext/libswscale/gstffmpegscale.c
+++ b/ext/libswscale/gstffmpegscale.c
@@ -802,6 +802,11 @@ plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (ffmpegscale_debug, "ffvideoscale", 0,
"video scaling element");
+
+#if HAVE_ORC
+ orc_init ();
+#endif
+
#ifndef GST_DISABLE_GST_DEBUG
av_log_set_callback (gst_ffmpeg_log_callback);
#endif