gstreamer/tests/check
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
..
gst rtsp-media: Handle set state when preparing. 2019-03-20 12:26:50 +01:00
Makefile.am configure: check for -good and -bad plugins only in uninstalled setup 2018-04-22 20:10:15 +01:00
meson.build meson: add option to disable build of rtspclientsink plugin 2018-09-19 12:17:57 +01:00