[gstreamer-bugs] [Bug 628820] media cleanup

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Sep 27 08:24:38 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=628820
  GStreamer | gst-rtsp-server | git

--- Comment #2 from Nicola <lists at svrinformatica.it> 2010-09-27 15:24:34 UTC ---
the problem is that the media is not destroyed until a client try to connect to
it, gst_rtsp_media_finalize is called only when all clients disconnect, so
imagine this scenario:

1) the source go down
2) for some reasons some clients still try to connect to it
3) the source come up again
4) new clients are unable to connect until all the old ones disconnect

so gst-rtsp server is not reliable on network error or generic source error,
all the clients should be disconnected on error and the gst_rtsp_media_finalize
should be called

you can simply reproduce this behavior:

1) add a media mapping for v4l2src
2) connect to this mapping with a client (I used vlc)
3) remove the media_mapping
4) you'll continue to see the stream
5) add a new mapping with same source and name
6) you'll be unable to connect to the mapping with any client until you stop
the client connected at 2)

I hope this time the explaination and the use case is clear enough,

please note that I noted this problem testing on a simple lan
(gst-rtsp<-hub->source stream) and after some time I was unable to connect to
the media even if the source was available

thanks
Nicola

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list