GNOME Bugzilla – Bug 789113
GstRTSPClient: Please provide a way to get the path
Last modified: 2017-10-21 10:22:07 UTC
Situation is a "closed" callback which has the GstRTSPClient as argument. In the callback I would like to read the path (client->priv->path) the client has used, e.g. "/rgb". I need this path to decide when to notify the producer of the video content if there are still clients receiving this content. If not the producer can stop.
Can you provide a patch for this?
Would a readonly property "path" in GstRTSPClient be acceptable?
That would work, yes
Note that you can also get the path from the GstRTSPContext. Some more context about where and why you need to get access to the path would be useful.
I need to get the path inside callback of the "closed" signal[1]. There is no GstRTSPContext there. [1] https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-server/html/GstRTSPClient.html#GstRTSPClient-closed
Never mind, seems that it does not work since the "path" is already destroyed when the callback fires. (It did work in gst0.10). However I discovered the "teardown-request" signal which also has a GstRTSPContext instance.