gst-plugins-bad: rotate: angle is in radians already, do not scale it

Vincent Penquerc'h vincent at kemper.freedesktop.org
Sun Feb 5 12:32:42 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: ddff93320dda8460c22fbe3cc0567b40fb4a0f31
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=ddff93320dda8460c22fbe3cc0567b40fb4a0f31

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Sat Feb  4 22:06:57 2012 +0000

rotate: angle is in radians already, do not scale it

Other plugins use radians, and the angle documentation says radians.

https://bugzilla.gnome.org/show_bug.cgi?id=669365

---

 gst/geometrictransform/gstrotate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/geometrictransform/gstrotate.c b/gst/geometrictransform/gstrotate.c
index 2c26bc3..764feb5 100644
--- a/gst/geometrictransform/gstrotate.c
+++ b/gst/geometrictransform/gstrotate.c
@@ -154,7 +154,7 @@ rotate_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
   h = gt->height;
 
   /* our parameters */
-  ar = rotate->angle * G_PI / 180.0;    /* angle of rotation, degrees to radians */
+  ar = rotate->angle;           /* angle of rotation */
 
   /* get in and out centers */
   cox = 0.5 * w;



More information about the gstreamer-commits mailing list