diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-07-17 14:02:14 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-07-17 18:09:46 +0200 |
commit | 081779aaa810ba55ba8a959932eedfd16017a3a7 (patch) | |
tree | 5787fc1bb355585cd4992d5bf5a55afdc6199f36 /gst/dvbsuboverlay | |
parent | 87ee22fe0e49d095dc15c90787d4cb5d028bee09 (diff) | |
download | gstreamer-plugins-bad-081779aaa810ba55ba8a959932eedfd16017a3a7.tar.gz |
dvbsuboverlay: adjust to modified video overlay composition API
Diffstat (limited to 'gst/dvbsuboverlay')
-rw-r--r-- | gst/dvbsuboverlay/gstdvbsuboverlay.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index 546ce7191..3a3529b41 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -41,6 +41,8 @@ #include <gst/glib-compat-private.h> #include "gstdvbsuboverlay.h" +#include <gst/video/gstvideometa.h> + #include <string.h> GST_DEBUG_CATEGORY_STATIC (gst_dvbsub_overlay_debug); @@ -761,8 +763,9 @@ gst_dvbsub_overlay_subs_to_comp (GstDVBSubOverlay * overlay, GST_LOG_OBJECT (overlay, "rectangle %d rendered: %dx%d @ (%d, %d)", i, rw, rh, rx, ry); - rect = gst_video_overlay_rectangle_new_argb (buf, w, h, 4 * w, - rx, ry, rw, rh, 0); + gst_buffer_add_video_meta (buf, GST_VIDEO_FRAME_FLAG_NONE, + GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_RGB, w, h); + rect = gst_video_overlay_rectangle_new_argb (buf, rx, ry, rw, rh, 0); g_assert (rect); if (comp) { gst_video_overlay_composition_add_rectangle (comp, rect); |