diff options
author | Thijs Vermeir <thijsvermeir@gmail.com> | 2009-01-23 15:39:46 +0100 |
---|---|---|
committer | Thijs Vermeir <thijsvermeir@gmail.com> | 2009-01-23 15:52:55 +0100 |
commit | c1cb1e0c5bf6b3b9d71cf68f7cb269a568ac3255 (patch) | |
tree | 87a493ebb01f49da9cc9f3f58ff99e73f8edd2cf /gst/videocrop/gstvideocrop.c | |
parent | 1b822932488aeff7ea7a519407c9a38b2b1d35c3 (diff) |
Add aspectratiocrop element. Fixes bug #527951
Add new aspectratiocrop element that crops the video
to a specified aspect ratio using videocrop.
Diffstat (limited to 'gst/videocrop/gstvideocrop.c')
-rw-r--r-- | gst/videocrop/gstvideocrop.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c index 781634e2..7c1428c2 100644 --- a/gst/videocrop/gstvideocrop.c +++ b/gst/videocrop/gstvideocrop.c @@ -67,6 +67,7 @@ #include <gst/video/video.h> #include "gstvideocrop.h" +#include "gstaspectratiocrop.h" #include <string.h> @@ -752,8 +753,13 @@ plugin_init (GstPlugin * plugin) { GST_DEBUG_CATEGORY_INIT (videocrop_debug, "videocrop", 0, "videocrop"); - return gst_element_register (plugin, "videocrop", GST_RANK_NONE, - GST_TYPE_VIDEO_CROP); + if (gst_element_register (plugin, "videocrop", GST_RANK_NONE, + GST_TYPE_VIDEO_CROP) + && gst_element_register (plugin, "aspectratiocrop", GST_RANK_NONE, + GST_TYPE_ASPECT_RATIO_CROP)) + return TRUE; + + return FALSE; } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, |