ffmpeg: Call orc_init() before trying to get target flags
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 14 Jun 2010 13:31:34 +0000 (15:31 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 14 Jun 2010 13:31:34 +0000 (15:31 +0200)
ext/libpostproc/gstpostproc.c
ext/libswscale/gstffmpegscale.c

index 903ae04..7a78219 100644 (file)
@@ -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
index 0a52e00..7b971d2 100644 (file)
@@ -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