[Bug 772835] videooverlaycomposition: Need unref composition when remove video overlay composition meta

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 14 02:55:14 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=772835

--- Comment #7 from kevin <kevinbing.song at gmail.com> ---
Below is our code.

  while ((meta = gst_buffer_iterate_meta (src, &state))) {
    if (meta->info->api == GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE) {
      compmeta = (GstVideoOverlayCompositionMeta*)meta;
      if (GST_IS_VIDEO_OVERLAY_COMPOSITION (compmeta->overlay)) {
        comp_copy = gst_video_overlay_composition_copy(compmeta->overlay);
        if (comp_copy) {
          gst_buffer_add_video_overlay_composition_meta(dst, comp_copy);
        }
      }
    }
  }

gst_video_overlay_composition_copy() will new comp_copy and
gst_buffer_add_video_overlay_composition_meta() will add one ref. Do you have
any suggestion.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list