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...
This commit is contained in:
Julien Moutte 2005-10-25 17:55:19 +00:00
parent 443f60a91b
commit cfea44dba3
2 changed files with 11 additions and 4 deletions

View file

@ -1,6 +1,10 @@
2005-10-25 Christian Schaller <set EMAIL_ADDRESS environment variable>
2005-10-25 Julien MOUTTE <julien@moutte.net>
reviewed by: <delete if not using a buddy>
* 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...
2005-10-25 Christian Schaller <christian@fluendo.com>
* gst/rtp/Makefile.am: add missing header files for disting

View file

@ -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;
}