GNOME Bugzilla – Bug 738567
Suspend and unsuspend call consistency
Last modified: 2018-01-13 14:33:42 UTC
Consistent behavior during play and pause Currently gst_rtsp_media_suspend() and gst_rtsp_media_unsuspend() methods are called in a inconsistent way during the pause and play request. Suspend method is called inside media_set_pipeline_state_locked() while pause and unsuspend is called during handle_play_request(). In a good design perspective, suspend should be called during the handle_pause_request() after setting the state and unsuspend should be called in the beginning of the play before setting the state.
I am working on this issue already.
Created attachment 289643 [details] [review] patch for suspend and unsuspend
Sorry no one ever reviewed this. The code has changed quite a lot since then and this logic has moved elsewhere. If it's still something that should be changed in the current implementation, please re-open and make a new patch against master, thanks!