Examples for Subclassing

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

Examples for Subclassing

Mert Can Ergun
I'm trying to subclass GstRTSPMediaFactory and tried to follow https://developer.gnome.org/SubclassGObject/ with no success.
Is there tutorial that shows how to subclass gstreamer classes and add/modify their functionality without altering the original code?
Reply | Threaded
Open this post in threaded view
|

Re: Examples for Subclassing

Dmitry Valento
Hello, Mert Can Ergun

You may examine GstRTSPMediaFactoryURI as example of inheritance
GstRTSPMediaFactory.

The main idea - "To subclass of GstRTSPMediaFactory and override
the create_element() vfunc... from which you return a GstBin that
contains your elements. The payloaders must be called pay%d, e.g. pay0,
pay1, etc. " -
http://gstreamer-devel.966125.n4.nabble.com/Using-C-API-based-pipelines-in-RTSP-server-without-launch-arg-tp4680144p4680176.html

Ideas about overriding other methods of GstRTSPMediaFactory -
http://gstreamer-devel.966125.n4.nabble.com/RTSP-Server-from-a-manually-created-and-linked-pipeline-td4680305.html



On 12/11/2016 11:15 AM, Mert Can Ergun wrote:

> I'm trying to subclass GstRTSPMediaFactory and tried to follow
> https://developer.gnome.org/SubclassGObject/ with no success.
> Is there tutorial that shows how to subclass gstreamer classes and
> add/modify their functionality without altering the original code?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Examples-for-Subclassing-tp4681142.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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