GNOME Bugzilla – Bug 753473
rtsp-server: shared media uri with explicit port given doesn't match same path uri without port
Last modified: 2015-08-16 13:37:59 UTC
have a factory with gst_rtsp_media_factory_set_shared (factory, TRUE); connect with one client to rtsp://host/stream connect with second client to rtsp://host:port/stream and it tries to re-configure the media
Created attachment 309048 [details] modified test-launch run using: sudo GST_DEBUG=*:2 ./test-launch -p 554 "( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )" result when connecting with first vlc client to rtsp://host/test -> 0:00:03.135220130 13448 0x9d0850 WARN default test-launch.c:36:media_configure: media_configure media is first configured and used connecting with second client to same uri -> nothing happens, same shared media is re-used connecting with third client to rtsp://host:554/test -> 0:00:45.752208772 13448 0x9d0850 WARN default test-launch.c:36:media_configure: media_configure new media is configured instead of using the exisiting one
Created attachment 309098 [details] [review] media-factory: get default port if port is not specified in url This is because keys in the media hash table are different between these 2 cases. Because if no port specifed, url->port set to 0.
Created attachment 309099 [details] [review] media-factory: get port number through gst_rtsp_url_get_port Probably, this is more simple.
Comment on attachment 309099 [details] [review] media-factory: get port number through gst_rtsp_url_get_port This works for me, thanks Hyunjun!