mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gdkpixbufsink: fix inverted pixel-aspect-ratio
Spotted by Mike Morrison. https://bugzilla.gnome.org/show_bug.cgi?id=665882
This commit is contained in:
parent
9c1095f474
commit
8aebe194aa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue