diff options
author | Julien Moutte <julien@moutte.net> | 2005-10-25 17:55:19 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2005-10-25 17:55:19 +0000 |
commit | cfea44dba33505979a563036d0174bf0965752f9 (patch) | |
tree | a21fb16c76c579269bea878f976e2d8b161f4a74 /gst/videobox | |
parent | 443f60a91b8d3201f4d81f544c513f766579d141 (diff) |
gst/videobox/gstvideobox.c: Doh ! I introduced wingo's bug again ! Sorry...
Original commit message from CVS:
2005-10-25 Julien MOUTTE <julien@moutte.net>
* gst/videobox/gstvideobox.c: (gst_video_box_class_init),
(gst_video_box_transform_caps), (gst_video_box_get_unit_size):
Doh ! I introduced wingo's bug again ! Sorry...
Diffstat (limited to 'gst/videobox')
-rw-r--r-- | gst/videobox/gstvideobox.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 874d50f1..374ab6aa 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -372,14 +372,17 @@ gst_video_box_transform_caps (GstBaseTransform * trans, } if (gst_structure_get_int (structure, "width", &tmp)) gst_structure_set (structure, "width", G_TYPE_INT, - tmp + direction * (video_box->box_left + video_box->box_right), NULL); + tmp + dir * (video_box->box_left + video_box->box_right), NULL); if (gst_structure_get_int (structure, "height", &tmp)) gst_structure_set (structure, "height", G_TYPE_INT, - tmp + direction * (video_box->box_top + video_box->box_bottom), NULL); + tmp + dir * (video_box->box_top + video_box->box_bottom), NULL); } g_value_unset (&list_value); + GST_DEBUG_OBJECT (video_box, "transformed %" GST_PTR_FORMAT + " to %" GST_PTR_FORMAT, from, to); + return to; } |