[Bug 764902] Explicitly initialize GstVideoCropMeta fields to 0 on init.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Apr 12 06:40:56 UTC 2016


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

--- Comment #3 from Arjen Veenhuizen <arjen.veenhuizen at tno.nl> ---
Usage in python:

from gi.repository import Gst, GstVideo
# Add metadata to GstBuffer
gstMeta = buffer.add_meta(GstVideo.VideoCropMeta.get_info(), 0)
# Set metadata values to GstMeta
GstVideo.buffer_set_video_crop_meta(gstMeta, 10, 20, 100, 200)
# To verify whether we really wrote the metadata, we retrieve a fresh reference
to the metadata on the GstBuffer
gstVideoVideoCropMeta = GstVideo.buffer_get_video_crop_meta(buffer)
# Should print 10
print gstVideoVideoCropMeta.x

-- 
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