1/* vim: set filetype=c: */ 2% ClassName 3GstVideoSink 4% TYPE_CLASS_NAME 5GST_TYPE_VIDEO_SINK 6% pads 7sinkpad-template-video 8% pkg-config 9gstreamer-video-1.0 10% includes 11#include <gst/video/video.h> 12#include <gst/video/gstvideosink.h> 13% prototypes 14static GstFlowReturn gst_replace_show_frame (GstVideoSink * video_sink, 15 GstBuffer * buf); 16% declare-class 17 GstVideoSinkClass *video_sink_class = GST_VIDEO_SINK_CLASS (klass); 18% set-methods 19 video_sink_class->show_frame = GST_DEBUG_FUNCPTR (gst_replace_show_frame); 20% methods 21static GstFlowReturn 22gst_replace_show_frame (GstVideoSink * sink, GstBuffer * buf) 23{ 24 GstReplace *replace = GST_REPLACE (sink); 25 26 GST_DEBUG_OBJECT (replace, "show_frame"); 27 28 return GST_FLOW_OK; 29} 30% end 31