diff options
author | David Schleef <ds@schleef.org> | 2013-03-14 23:57:06 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2013-03-14 23:57:06 -0700 |
commit | b45a1df5deadb029dcbe4522f0116d34f1cd2f1e (patch) | |
tree | d46b051fb9249e86bbac6a8a2be47e6d72d4ac2a /tools/element-templates/videosink | |
parent | 6005ab322dff427e9a06963b74523fa1de1d5165 (diff) | |
download | gstreamer-plugins-bad-b45a1df5deadb029dcbe4522f0116d34f1cd2f1e.tar.gz |
element-maker: Update templates for 1.0
This are (almost) completely autogenerated from the documentation.
Diffstat (limited to 'tools/element-templates/videosink')
-rw-r--r-- | tools/element-templates/videosink | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/tools/element-templates/videosink b/tools/element-templates/videosink index d26de559b..d73ca0faf 100644 --- a/tools/element-templates/videosink +++ b/tools/element-templates/videosink @@ -4,29 +4,27 @@ GstVideoSink % TYPE_CLASS_NAME GST_TYPE_VIDEO_SINK % pads -sinkpad-simple +sinkpad-template-video % pkg-config -gstreamer-video-0.10 +gstreamer-video-1.0 % includes +#include <gst/video/video.h> #include <gst/video/gstvideosink.h> % prototypes - -static GstFlowReturn -gst_replace_show_frame (GstVideoSink * video_sink, GstBuffer * buf); - - +static GstFlowReturn gst_replace_show_frame (GstVideoSink * video_sink, + GstBuffer * buf); % declare-class GstVideoSinkClass *video_sink_class = GST_VIDEO_SINK_CLASS (klass); % set-methods video_sink_class->show_frame = GST_DEBUG_FUNCPTR (gst_replace_show_frame); % methods - static GstFlowReturn -gst_replace_show_frame (GstVideoSink * video_sink, GstBuffer * buf) +gst_replace_show_frame (GstVideoSink * sink, GstBuffer * buf) { + GstReplace *replace = GST_REPLACE (sink); + + GST_DEBUG_OBJECT (replace, "show_frame"); return GST_FLOW_OK; } - % end - |