Add method for hadling server requests
Add method to handle server requests on the list of RTSP extensions.
This commit is contained in:
parent
8c9931e13e
commit
c4d53e9cc2
@ -247,3 +247,20 @@ gst_rtsp_ext_list_connect (GstRTSPExtensionList * ext,
|
|||||||
g_signal_connect (elem, detailed_signal, c_handler, data);
|
g_signal_connect (elem, detailed_signal, c_handler, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GstRTSPResult
|
||||||
|
gst_rtsp_ext_list_receive_request (GstRTSPExtensionList * ext,
|
||||||
|
GstRTSPMessage * req)
|
||||||
|
{
|
||||||
|
GList *walk;
|
||||||
|
GstRTSPResult res = GST_RTSP_ENOTIMPL;
|
||||||
|
|
||||||
|
for (walk = ext->extensions; walk; walk = g_list_next (walk)) {
|
||||||
|
GstRTSPExtension *elem = (GstRTSPExtension *) walk->data;
|
||||||
|
|
||||||
|
res = gst_rtsp_extension_receive_request (elem, req);
|
||||||
|
if (res != GST_RTSP_ENOTIMPL)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -76,6 +76,7 @@ GstRTSPResult gst_rtsp_ext_list_stream_select (GstRTSPExtensionList *ext, Gs
|
|||||||
void gst_rtsp_ext_list_connect (GstRTSPExtensionList *ext,
|
void gst_rtsp_ext_list_connect (GstRTSPExtensionList *ext,
|
||||||
const gchar *detailed_signal, GCallback c_handler,
|
const gchar *detailed_signal, GCallback c_handler,
|
||||||
gpointer data);
|
gpointer data);
|
||||||
|
GstRTSPResult gst_rtsp_ext_list_receive_request (GstRTSPExtensionList *ext, GstRTSPMessage *req);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user