X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Fgst%2Fbase%2Fgstpushsrc.h;h=89e67769d2eb906c6d9f6e7309244014f20a0f54;hb=5bf13cdd5314bc3c6c81bd620e712acdcab14eb2;hp=b936d83f741c96c954723caf759182b0582dec5e;hpb=4b6c3c7fea348f513e275d2394f9322f720e9831;p=platform%2Fupstream%2Fgstreamer.git diff --git a/libs/gst/base/gstpushsrc.h b/libs/gst/base/gstpushsrc.h index b936d83..89e6776 100644 --- a/libs/gst/base/gstpushsrc.h +++ b/libs/gst/base/gstpushsrc.h @@ -17,8 +17,8 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #ifndef __GST_PUSH_SRC_H__ @@ -51,6 +51,22 @@ struct _GstPushSrc { gpointer _gst_reserved[GST_PADDING]; }; +/** + * GstPushSrcClass: + * @parent_class: Element parent class + * @create: Ask the subclass to create a buffer. The subclass decides which + * size this buffer should be. Other then that, refer to + * #GstBaseSrc.create() for more details. If this method is + * not implemented, @alloc followed by @fill will be called. + * @alloc: Ask the subclass to allocate a buffer. The subclass decides which + * size this buffer should be. The default implementation will create + * a new buffer from the negotiated allocator. + * @fill: Ask the subclass to fill the buffer with data. + * + * Subclasses can override any of the available virtual methods or not, as + * needed. At the minimum, the @fill method should be overridden to produce + * buffers. + */ struct _GstPushSrcClass { GstBaseSrcClass parent_class; @@ -66,7 +82,12 @@ struct _GstPushSrcClass { gpointer _gst_reserved[GST_PADDING]; }; -GType gst_push_src_get_type(void); +GST_BASE_API +GType gst_push_src_get_type (void); + +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPushSrc, gst_object_unref) +#endif G_END_DECLS