From 4e68e0f563a26230c0d0d33c4859d7975a6e09e2 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 5 Jan 2006 17:03:45 +0000 Subject: [PATCH] gst/videobox/gstvideobox.c: call oil_init() when using liboil Original commit message from CVS: * gst/videobox/gstvideobox.c: (gst_video_box_class_init), (plugin_init): call oil_init() when using liboil --- ChangeLog | 6 ++++++ gst/videobox/gstvideobox.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6f24cab7bb..29c4026576 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-05 Stefan Kost + + * gst/videobox/gstvideobox.c: (gst_video_box_class_init), + (plugin_init): + call oil_init() when using liboil + 2006-01-04 Wim Taymans * ext/jpeg/gstsmokedec.c: (gst_smokedec_chain): diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 87a72e8a7a..76ee14a35f 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -219,6 +219,10 @@ gst_video_box_class_init (GstVideoBoxClass * klass) GST_DEBUG_CATEGORY_INIT (videobox_debug, "videobox", 0, "Resizes a video by adding borders or cropping"); + +#ifdef HAVE_LIBOIL + oil_init (); +#endif } static void @@ -685,6 +689,7 @@ gst_video_box_transform (GstBaseTransform * trans, GstBuffer * in, static gboolean plugin_init (GstPlugin * plugin) { + return gst_element_register (plugin, "videobox", GST_RANK_NONE, GST_TYPE_VIDEO_BOX); }