GNOME Bugzilla – Bug 703008
gst-rtsp-server: get data from media element's association table
Last modified: 2014-02-25 22:28:09 UTC
Now that gst-rtsp-servers uses opaque data structures, it is not possible (AFAIK( to carry around extra information, for example, when creating a new element in the media factory (create_element).
Created attachment 247673 [details] [review] added gst_rtsp_media_get_element_data
There is an "element" property that gives you the element and then you can use any of the get_data, get_qdata on it etc. I think it is nicer to get the element than to proxy all of the potential element methods (and signals and properties). I also added a method for completeness: commit aab11985169d6b27443c3581eadbe0760c6f9bce Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Mon Jun 24 23:56:57 2013 +0200 media: add _get_element() method Add method to get the element used when creating the media. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703008
Yes, that makes more sense. Actually that's the same I did for the rtp session, I don't remember why I didn't the same for this one. Thanks!