mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-12 09:15:29 +00:00
dvbsuboverlay: adjust to modified video overlay composition API
This commit is contained in:
parent
87ee22fe0e
commit
081779aaa8
1 changed files with 5 additions and 2 deletions
|
@ -41,6 +41,8 @@
|
||||||
#include <gst/glib-compat-private.h>
|
#include <gst/glib-compat-private.h>
|
||||||
#include "gstdvbsuboverlay.h"
|
#include "gstdvbsuboverlay.h"
|
||||||
|
|
||||||
|
#include <gst/video/gstvideometa.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_dvbsub_overlay_debug);
|
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,
|
GST_LOG_OBJECT (overlay, "rectangle %d rendered: %dx%d @ (%d, %d)", i,
|
||||||
rw, rh, rx, ry);
|
rw, rh, rx, ry);
|
||||||
|
|
||||||
rect = gst_video_overlay_rectangle_new_argb (buf, w, h, 4 * w,
|
gst_buffer_add_video_meta (buf, GST_VIDEO_FRAME_FLAG_NONE,
|
||||||
rx, ry, rw, rh, 0);
|
GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_RGB, w, h);
|
||||||
|
rect = gst_video_overlay_rectangle_new_argb (buf, rx, ry, rw, rh, 0);
|
||||||
g_assert (rect);
|
g_assert (rect);
|
||||||
if (comp) {
|
if (comp) {
|
||||||
gst_video_overlay_composition_add_rectangle (comp, rect);
|
gst_video_overlay_composition_add_rectangle (comp, rect);
|
||||||
|
|
Loading…
Reference in a new issue