gstreamer/tests
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
..
check rtsp-media: Handle set state when preparing. 2019-03-20 12:26:50 +01:00
.gitignore tests: add tests directory and cleanup test 2011-01-12 18:16:46 +01:00
Makefile.am tests: disable all tests when --disable-tests is used 2017-12-06 20:47:22 +00:00
meson.build meson: Use feature option for tests option 2018-09-01 11:23:54 +05:30
test-cleanup.c test-cleanup: bind any port 2018-02-12 19:12:35 +01:00
test-reuse.c Fix timeout function signatures across tests and examples 2015-04-23 20:12:18 +02:00