mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rtsp-client: implement error_full
Implement error_full to avoid some segfaults when the rtspconnection calls it. See #608245
This commit is contained in:
parent
996112db95
commit
ce6724f788
1 changed files with 17 additions and 1 deletions
|
@ -1369,6 +1369,21 @@ error (GstRTSPWatch * watch, GstRTSPResult result, gpointer user_data)
|
||||||
return GST_RTSP_OK;
|
return GST_RTSP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GstRTSPResult
|
||||||
|
error_full (GstRTSPWatch *watch, GstRTSPResult result,
|
||||||
|
GstRTSPMessage *message, guint id, gpointer user_data)
|
||||||
|
{
|
||||||
|
GstRTSPClient *client = GST_RTSP_CLIENT (user_data);
|
||||||
|
gchar *str;
|
||||||
|
|
||||||
|
str = gst_rtsp_strresult (result);
|
||||||
|
GST_INFO ("client %p: received an error %s when handling message %p with id %d",
|
||||||
|
client, str, message, id);
|
||||||
|
g_free (str);
|
||||||
|
|
||||||
|
return GST_RTSP_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static GstRTSPStatusCode
|
static GstRTSPStatusCode
|
||||||
tunnel_start (GstRTSPWatch * watch, gpointer user_data)
|
tunnel_start (GstRTSPWatch * watch, gpointer user_data)
|
||||||
{
|
{
|
||||||
|
@ -1467,7 +1482,8 @@ static GstRTSPWatchFuncs watch_funcs = {
|
||||||
closed,
|
closed,
|
||||||
error,
|
error,
|
||||||
tunnel_start,
|
tunnel_start,
|
||||||
tunnel_complete
|
tunnel_complete,
|
||||||
|
error_full
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue