diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-17 13:04:27 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-17 13:06:01 +0200 |
commit | a46485e35771124d3be89d2457496b5d2f99497e (patch) | |
tree | f0ca617080de42281bcfc7b77c4ecad77afd1f06 /gst/videotestsrc/gstvideotestsrc.c | |
parent | 5348de76b1f8d08ba257867281151a293f31b394 (diff) |
gst: Update for caps/pad template related API changes
Diffstat (limited to 'gst/videotestsrc/gstvideotestsrc.c')
-rw-r--r-- | gst/videotestsrc/gstvideotestsrc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index c44d46bc2..45cd8b767 100644 --- a/gst/videotestsrc/gstvideotestsrc.c +++ b/gst/videotestsrc/gstvideotestsrc.c @@ -172,6 +172,7 @@ gst_video_test_src_class_init (GstVideoTestSrcClass * klass) GstElementClass *gstelement_class; GstBaseSrcClass *gstbasesrc_class; GstPushSrcClass *gstpushsrc_class; + GstCaps *templ_caps; gobject_class = (GObjectClass *) klass; gstelement_class = (GstElementClass *) klass; @@ -296,9 +297,10 @@ gst_video_test_src_class_init (GstVideoTestSrcClass * klass) "Video test source", "Source/Video", "Creates a test video stream", "David A. Schleef <ds@schleef.org>"); + templ_caps = gst_video_test_src_getcaps (NULL, NULL); gst_element_class_add_pad_template (gstelement_class, - gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - gst_video_test_src_getcaps (NULL, NULL))); + gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, templ_caps)); + gst_caps_unref (templ_caps); gstbasesrc_class->get_caps = gst_video_test_src_getcaps; gstbasesrc_class->set_caps = gst_video_test_src_setcaps; |