rtsp-media: Wait on async when needed.
authorGöran Jönsson <goranjn@axis.com>
Wed, 11 Sep 2019 05:08:37 +0000 (07:08 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Wed, 2 Oct 2019 15:00:23 +0000 (15:00 +0000)
commit18f4f4e5095fc41c59638710dc6477c240158704
tree459e3b445d29da5b780381c9f14ad31bc47c8567
parent7e1edcf1a4eb71fd699a5fef0f810d1e3ef3c278
rtsp-media: Wait on async when needed.

Wait on asyn-done when needed in gst_rtsp_media_seek_trickmode.

In the unit test the pause from adjust_play_mode will cause a preroll
and after that async-done will be produced.
Without this patch there are no one consuming this async-done and when
later when seek fluch is done in gst_rtsp_media_seek_trickmode then it
wait for async-done. But then it wrongly find the async-done prodused by
adjus_play_mode and continue executing without waiting for the preroll
to finish.
gst/rtsp-server/rtsp-media.c
tests/check/gst/rtspserver.c