GNOME Bugzilla – Bug 720155
media: add setup_sdp vmethod
Last modified: 2014-02-25 22:28:03 UTC
Currently, rtsp client can create a new SDP message and calls gst_rtsp_sdp_from_media. It would be good if media had a vmethod to setup the SDP message instead.
Created attachment 263873 [details] [review] media: add setup_sdp vmethod Added setup_sdp vmethod plus gst_rtsp_media_setup_sdp. A user that subclasses rtsp media can now update the SDP more easily.
Comment on attachment 263873 [details] [review] media: add setup_sdp vmethod Looks good to me and the API makes sense to me, but I'll let Wim decide if this is the API he wants for gst-rtsp-server.
Commited but left the actual code in rtsp-sdp.c. I imagine a future where we can also create other formats to descrie the media and I would like t keep that separate for now. It's all a bit hardcoded and inflexible for now but I think it will do for now. commit baa0eadc5d0fcb0d1b2bcb9ab33fc08d0f7c88f8 Author: Aleix Conchillo Flaqué <aleix@oblong.com> Date: Wed Dec 18 16:37:27 2013 +0100 media: add setup_sdp vmethod gst/rtsp-server/rtsp-media.[ch]: added setup_sdp vmethod and public gst_rtsp_media_setup_sdp. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=720155