[0.10] gst-plugins-bad: rotate: angle is in radians already, do not scale it
Tim Müller
tpm at kemper.freedesktop.org
Thu Feb 9 12:12:41 PST 2012
Module: gst-plugins-bad
Branch: 0.10
Commit: 8e2be062e9100411a4bd7230d4900296c1f445a1
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=8e2be062e9100411a4bd7230d4900296c1f445a1
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