diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-01-05 17:03:45 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-01-05 17:03:45 +0000 |
commit | 4e68e0f563a26230c0d0d33c4859d7975a6e09e2 (patch) | |
tree | bed90614ccd8bfcd6d37a4415846ef55497b2089 /gst/videobox | |
parent | 59ec603210a357ef226d1c0df73d6e8088e0e4a2 (diff) |
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
Diffstat (limited to 'gst/videobox')
-rw-r--r-- | gst/videobox/gstvideobox.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 87a72e8a..76ee14a3 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); } |