[0.11] gst-plugins-good: gdkpixbufsink: fix inverted pixel-aspect-ratio

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 05:33:01 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 8aebe194aa6d9bb01aeb53538c4ada54d3c19f1d
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=8aebe194aa6d9bb01aeb53538c4ada54d3c19f1d

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Sun Dec 11 18:40:31 2011 +0000

gdkpixbufsink: fix inverted pixel-aspect-ratio

Spotted by Mike Morrison.

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

---

 ext/gdk_pixbuf/gstgdkpixbufsink.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/gdk_pixbuf/gstgdkpixbufsink.c b/ext/gdk_pixbuf/gstgdkpixbufsink.c
index 8a9677a..2c2714e 100644
--- a/ext/gdk_pixbuf/gstgdkpixbufsink.c
+++ b/ext/gdk_pixbuf/gstgdkpixbufsink.c
@@ -271,7 +271,7 @@ gst_gdk_pixbuf_sink_set_caps (GstBaseSink * basesink, GstCaps * caps)
 
   GST_INFO_OBJECT (sink, "format             : %d", fmt);
   GST_INFO_OBJECT (sink, "width x height     : %d x %d", w, h);
-  GST_INFO_OBJECT (sink, "pixel-aspect-ratio : %d/%d", par_d, par_n);
+  GST_INFO_OBJECT (sink, "pixel-aspect-ratio : %d/%d", par_n, par_d);
 
   return TRUE;
 }
@@ -344,7 +344,7 @@ gst_gdk_pixbuf_sink_handle_buffer (GstBaseSink * basesink, GstBuffer * buf,
      * The structure will take its own ref to the pixbuf. */
     s = gst_structure_new (msg_name,
         "pixbuf", GDK_TYPE_PIXBUF, pixbuf,
-        "pixel-aspect-ratio", GST_TYPE_FRACTION, sink->par_d, sink->par_n,
+        "pixel-aspect-ratio", GST_TYPE_FRACTION, sink->par_n, sink->par_d,
         NULL);
 
     msg = gst_message_new_element (GST_OBJECT_CAST (sink), s);



More information about the gstreamer-commits mailing list