srt: Clean up error handling
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Wed, 8 Jun 2022 14:35:54 +0000 (16:35 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 4 Nov 2022 13:07:34 +0000 (13:07 +0000)
commit4e05100e8c882ac9aa0b670935d8ac2584609056
treea1bb4a2da64caa74c73d927987d2de465cbc16fc
parenta3cc5cf2575749c0a03322ce959606f346811604
srt: Clean up error handling

- Make the srt_epoll_wait loops more uniform.

- Error only via GError when possible; let the element send the error
  message. Avoids a second error message.

- Return 0 when cancelled. Avoids an error message from the element.

- Don't send an error message from send_headers when we're a server
  sink.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3156>
subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c