Revert unusable workaround for PAUSE being sent when going NULL
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 17 Mar 2021 06:02:08 +0000 (11:32 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 17 Mar 2021 08:34:16 +0000 (14:04 +0530)
commit55edd59f4822283c7a1f8491c18396fa4858b446
treeba9d3dc7d7e1243079cbda24c988ac389cefb3da
parent00e73e1657ca63de7621994d10fb1612444c109c
Revert unusable workaround for PAUSE being sent when going NULL

Directly setting rtspsrc to the NULL state before putting the pipeline
in the NULL state usually works, but it can cause a deadlock in some
cases, so it's not a reliable mechanism to fix this.

This reverts commit f37afdafff1fd0a339966116261f5cd0de53f5d1:
"rtspsrc: Fix state changes from PAUSED to PLAYING"

and commit 76d624b2df5594a82269b94dffe8766a372d059d:
"rtspsrc: Do not send PAUSE command when going to GST_STATE_NULL"

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/908>
gst/rtsp/gstrtspsrc.c