splitmuxsink: fix sink pad release while PLAYING
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 8 Sep 2020 18:57:33 +0000 (20:57 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Wed, 9 Sep 2020 17:03:12 +0000 (19:03 +0200)
commit19860200ed6a9c11fae6e4d5e4cb20d14ac5ff93
tree2c8ae931cf9edb152ee913ebdb335198c455028a
parent8f684913cf19fb804dfbc255f1bb25d78c693688
splitmuxsink: fix sink pad release while PLAYING

- Release the split mux lock while removing the probes

- Flush the sinkpad to unblock other pads

- Turn check_completed_gop into a do while statement, when
  waking up we want to recheck whether the current GOP is
  ready for sending

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/719>
gst/multifile/gstsplitmuxsink.c