pango: adjust to modified video overlay composition API

This commit is contained in:
Mark Nauwelaerts 2012-07-17 13:47:02 +02:00
parent f89c7b605f
commit 3ecad525b7

View file

@ -76,6 +76,7 @@
#endif
#include <gst/video/video.h>
#include <gst/video/gstvideometa.h>
#include "gstbasetextoverlay.h"
#include "gsttextoverlay.h"
@ -1232,8 +1233,10 @@ gst_base_text_overlay_set_composition (GstBaseTextOverlay * overlay)
gst_base_text_overlay_get_pos (overlay, &xpos, &ypos);
if (overlay->text_image) {
gst_buffer_add_video_meta (overlay->text_image, GST_VIDEO_FRAME_FLAG_NONE,
GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_RGB,
overlay->image_width, overlay->image_height);
rectangle = gst_video_overlay_rectangle_new_argb (overlay->text_image,
overlay->image_width, overlay->image_height, 4 * overlay->image_width,
xpos, ypos, overlay->image_width, overlay->image_height,
GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA);