mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
srtobject: post a message on the bus when broken socket is detected
So that the application gets notified may react to it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1935>
This commit is contained in:
parent
4c66a0265c
commit
00e44e8ed7
1 changed files with 3 additions and 2 deletions
|
@ -1638,8 +1638,9 @@ gst_srt_object_write_one (GstSRTObject * srtobject,
|
|||
case SRTS_BROKEN:
|
||||
case SRTS_NONEXIST:
|
||||
case SRTS_CLOSED:
|
||||
GST_WARNING_OBJECT (srtobject->element,
|
||||
"Invalid SRT socket. Trying to reconnect");
|
||||
GST_ELEMENT_WARNING (srtobject->element, RESOURCE, WRITE, NULL,
|
||||
("Invalid SRT socket. Trying to reconnect. (%s)",
|
||||
srt_getlasterror_str ()));
|
||||
gst_srt_object_close (srtobject);
|
||||
if (!gst_srt_object_open_internal (srtobject, cancellable, error)) {
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue