gstreamer/tests/check/gst
Göran Jönsson 1fd49d36d1 rtsp-media: Handle set state when preparing.
Handle the situation when  a call to gst_rtsp_media_set_state is done
when media status is preparing.

Also add unit test for this scenario.

The unit test simulate on a media level when two clients share a (live)
media.
Both clients have done SETUP and got responses. Now client 1 is doing
play and client 2 is just closing the connection.

Then without patch there are a problem when
client1 is calling gst_rtsp_media_unsuspend in handle_play_request.
And client2 is doing closing connection we can end up in a call
to gst_rtsp_media_set_state when
priv->status == GST_RTSP_MEDIA_STATUS_PREPARING and all the logic for
shut down media is jumped over .

With this patch and this scenario we wait until
priv->status == GST_RTSP_MEDIA_STATUS_PREPARED and then continue to
execute after that and now we will execute the logic for
shut down media.
2019-03-20 12:26:50 +01:00
..
addresspool.c address-pool: fix address increment 2013-11-12 16:54:59 +01:00
client.c rtsp-media: Fix multicast use case with common media 2019-02-19 12:12:34 +01:00
media.c rtsp-media: Handle set state when preparing. 2019-03-20 12:26:50 +01:00
mediafactory.c New property for socket binding to mcast addresses 2018-09-28 13:27:48 +03:00
mountpoints.c tests: mountpoints: add more checks for mount point path matching 2018-01-25 12:13:20 +00:00
permissions.c permissions: more bindings-friendly API 2018-03-02 16:21:37 +01:00
rtspclientsink.c gst: Run everything through gst-indent again 2018-04-04 10:06:06 +03:00
rtspserver.c tests: rtspserver: Add shared media test case for TCP 2018-11-17 16:16:34 +01:00
sessionmedia.c tests: fix memory leak in sessionmedia unit test 2014-05-02 19:58:40 +01:00
sessionpool.c tests: fix indentation 2018-01-13 15:02:48 +00:00
stream.c Fix indentation again 2018-08-14 14:31:55 +03:00
threadpool.c tests: Improve code coverage of rtsp-threadpool tests 2014-03-24 00:44:55 +00:00
token.c rtsp-token: add some API to set fields from bindings 2018-01-18 22:37:57 +00:00