how to derive an instance from GstBuffer (0.11.x)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to derive an instance from GstBuffer (0.11.x)

Kaijun Tang
Hi,
 
Since gstreamer-0.11.0, GstBuffer seems non-derivable due to Miniobject being defined as GType rathern than GTypeInstance. How do I design an instantiable object or class derived from GstBuffer?
 
Kind Regards


Kai

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to derive an instance from GstBuffer (0.11.x)

Edward Hervey
Administrator
Hi,

  Sub-classing buffers is gone in 0.11/1.0. You are meant to use GstMeta
instead (either re-using an existing one or creating your own).

    Edward

On Fri, 2011-11-25 at 06:31 -0800, Kaijun Tang wrote:

> Hi,
>  
> Since gstreamer-0.11.0, GstBuffer seems non-derivable due to
> Miniobject being defined as GType rathern than GTypeInstance. How do I
> design an instantiable object or class derived from GstBuffer?
>
>  
> Kind Regards
>
>
>
>
> Kai
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to derive an instance from GstBuffer (0.11.x)

Arnaud Vrac
On Fri, Nov 25, 2011 at 3:42 PM, Edward Hervey <[hidden email]> wrote:
> Hi,
>
>  Sub-classing buffers is gone in 0.11/1.0. You are meant to use GstMeta
> instead (either re-using an existing one or creating your own).
>

You might also want to implement a custom memory allocator to work
with hardware buffers.

--
Arnaud
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel