gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
/* GStreamer RTSP extension
|
|
|
|
* Copyright (C) 2007 Wim Taymans <wim.taymans@gmail.com>
|
|
|
|
*
|
gst-libs/gst/: Move the rtspextension.h interface into gstrtspextension.h as part of libgstrtsp instead of libgstinte...
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/interfaces-marshal.list:
* gst-libs/gst/interfaces/rtspextension.c:
* gst-libs/gst/interfaces/rtspextension.h:
* gst-libs/gst/rtsp/Makefile.am:
* gst-libs/gst/rtsp/gstrtsp.h:
* gst-libs/gst/rtsp/gstrtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/rtsp/gstrtspextension.h:
* gst-libs/gst/rtsp/rtsp-marshal.list:
Move the rtspextension.h interface into gstrtspextension.h
as part of libgstrtsp instead of libgstinterfaces, because it's
only for use within plugins, not applications.
Add stuff to do the enum & marshal generation needed in libgstrtsp now.
Use the GST_TYPE_RTSP_RESULT enum type for the return value of the
signal that the GstRTSPExtension interface emits, since G_TYPE_ENUM
is abstract.
2007-07-26 19:57:15 +00:00
|
|
|
* gstrtspextension.c: RTSP extension mechanism
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SECTION:gstrtspextension
|
2017-01-23 19:36:11 +00:00
|
|
|
* @title: GstRTSPExtension
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
* @short_description: Interface for extending RTSP protocols
|
|
|
|
*
|
2010-03-15 23:47:23 +00:00
|
|
|
* This interface is implemented e.g. by the Windows Media Streaming RTSP
|
|
|
|
* exentension (rtspwms) and the RealMedia RTSP extension (rtspreal).
|
2017-01-23 19:36:11 +00:00
|
|
|
*
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
gst-libs/gst/: Move the rtspextension.h interface into gstrtspextension.h as part of libgstrtsp instead of libgstinte...
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/interfaces-marshal.list:
* gst-libs/gst/interfaces/rtspextension.c:
* gst-libs/gst/interfaces/rtspextension.h:
* gst-libs/gst/rtsp/Makefile.am:
* gst-libs/gst/rtsp/gstrtsp.h:
* gst-libs/gst/rtsp/gstrtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/rtsp/gstrtspextension.h:
* gst-libs/gst/rtsp/rtsp-marshal.list:
Move the rtspextension.h interface into gstrtspextension.h
as part of libgstrtsp instead of libgstinterfaces, because it's
only for use within plugins, not applications.
Add stuff to do the enum & marshal generation needed in libgstrtsp now.
Use the GST_TYPE_RTSP_RESULT enum type for the return value of the
signal that the GstRTSPExtension interface emits, since G_TYPE_ENUM
is abstract.
2007-07-26 19:57:15 +00:00
|
|
|
#include "gstrtsp-enumtypes.h"
|
|
|
|
#include "gstrtspextension.h"
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
|
|
|
|
static void gst_rtsp_extension_iface_init (GstRTSPExtension * iface);
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
SIGNAL_SEND,
|
|
|
|
LAST_SIGNAL
|
|
|
|
};
|
|
|
|
|
|
|
|
static guint gst_rtsp_extension_signals[LAST_SIGNAL] = { 0 };
|
|
|
|
|
|
|
|
GType
|
|
|
|
gst_rtsp_extension_get_type (void)
|
|
|
|
{
|
2021-03-18 08:18:36 +00:00
|
|
|
static gsize gst_rtsp_extension_type = 0;
|
2010-10-08 10:23:33 +00:00
|
|
|
static const GTypeInfo gst_rtsp_extension_info = {
|
|
|
|
sizeof (GstRTSPExtensionInterface),
|
|
|
|
(GBaseInitFunc) gst_rtsp_extension_iface_init,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
NULL,
|
|
|
|
};
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
|
2010-10-08 10:23:33 +00:00
|
|
|
if (g_once_init_enter (&gst_rtsp_extension_type)) {
|
|
|
|
GType tmp = g_type_register_static (G_TYPE_INTERFACE,
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
"GstRTSPExtension", &gst_rtsp_extension_info, 0);
|
2010-10-08 10:23:33 +00:00
|
|
|
g_once_init_leave (&gst_rtsp_extension_type, tmp);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
}
|
2010-10-08 10:23:33 +00:00
|
|
|
return (GType) gst_rtsp_extension_type;
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gst_rtsp_extension_iface_init (GstRTSPExtension * iface)
|
|
|
|
{
|
|
|
|
static gboolean initialized = FALSE;
|
|
|
|
|
|
|
|
if (!initialized) {
|
|
|
|
gst_rtsp_extension_signals[SIGNAL_SEND] =
|
|
|
|
g_signal_new ("send", G_TYPE_FROM_CLASS (iface),
|
|
|
|
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPExtensionInterface,
|
2019-08-26 05:54:48 +00:00
|
|
|
send), NULL, NULL, NULL, GST_TYPE_RTSP_RESULT, 2, G_TYPE_POINTER,
|
|
|
|
G_TYPE_POINTER);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
initialized = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
gst_rtsp_extension_detect_server (GstRTSPExtension * ext, GstRTSPMessage * resp)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
gboolean res = TRUE;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->detect_server)
|
|
|
|
res = iface->detect_server (ext, resp);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstRTSPResult
|
|
|
|
gst_rtsp_extension_before_send (GstRTSPExtension * ext, GstRTSPMessage * req)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
GstRTSPResult res = GST_RTSP_OK;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->before_send)
|
|
|
|
res = iface->before_send (ext, req);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstRTSPResult
|
|
|
|
gst_rtsp_extension_after_send (GstRTSPExtension * ext, GstRTSPMessage * req,
|
|
|
|
GstRTSPMessage * resp)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
GstRTSPResult res = GST_RTSP_OK;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->after_send)
|
|
|
|
res = iface->after_send (ext, req, resp);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstRTSPResult
|
|
|
|
gst_rtsp_extension_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp,
|
|
|
|
GstStructure * s)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
GstRTSPResult res = GST_RTSP_OK;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->parse_sdp)
|
|
|
|
res = iface->parse_sdp (ext, sdp, s);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstRTSPResult
|
|
|
|
gst_rtsp_extension_setup_media (GstRTSPExtension * ext, GstSDPMedia * media)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
GstRTSPResult res = GST_RTSP_OK;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->setup_media)
|
|
|
|
res = iface->setup_media (ext, media);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
gst_rtsp_extension_configure_stream (GstRTSPExtension * ext, GstCaps * caps)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
gboolean res = TRUE;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->configure_stream)
|
|
|
|
res = iface->configure_stream (ext, caps);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstRTSPResult
|
|
|
|
gst_rtsp_extension_get_transports (GstRTSPExtension * ext,
|
|
|
|
GstRTSPLowerTrans protocols, gchar ** transport)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
GstRTSPResult res = GST_RTSP_OK;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->get_transports)
|
|
|
|
res = iface->get_transports (ext, protocols, transport);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstRTSPResult
|
2007-07-26 15:48:01 +00:00
|
|
|
gst_rtsp_extension_stream_select (GstRTSPExtension * ext, GstRTSPUrl * url)
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
GstRTSPResult res = GST_RTSP_OK;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
if (iface->stream_select)
|
2007-07-26 15:48:01 +00:00
|
|
|
res = iface->stream_select (ext, url);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
2009-02-23 09:57:08 +00:00
|
|
|
GstRTSPResult
|
|
|
|
gst_rtsp_extension_receive_request (GstRTSPExtension * ext,
|
|
|
|
GstRTSPMessage * msg)
|
|
|
|
{
|
|
|
|
GstRTSPExtensionInterface *iface;
|
|
|
|
GstRTSPResult res = GST_RTSP_ENOTIMPL;
|
|
|
|
|
2011-10-21 12:37:31 +00:00
|
|
|
iface = GST_RTSP_EXTENSION_GET_INTERFACE (ext);
|
2009-02-23 09:57:08 +00:00
|
|
|
if (iface->receive_request)
|
|
|
|
res = iface->receive_request (ext, msg);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
GstRTSPResult
|
|
|
|
gst_rtsp_extension_send (GstRTSPExtension * ext, GstRTSPMessage * req,
|
|
|
|
GstRTSPMessage * resp)
|
|
|
|
{
|
|
|
|
GstRTSPResult res = GST_RTSP_OK;
|
|
|
|
|
2007-07-27 11:16:23 +00:00
|
|
|
g_signal_emit (ext, gst_rtsp_extension_signals[SIGNAL_SEND], 0,
|
|
|
|
req, resp, &res);
|
gst-libs/gst/interfaces/: Move interface for RTSP extensions from -good to here.
Original commit message from CVS:
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_get_type), (gst_rtsp_extension_iface_init),
(gst_rtsp_extension_detect_server),
(gst_rtsp_extension_before_send), (gst_rtsp_extension_after_send),
(gst_rtsp_extension_parse_sdp), (gst_rtsp_extension_setup_media),
(gst_rtsp_extension_configure_stream),
(gst_rtsp_extension_get_transports),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Move interface for RTSP extensions from -good to here.
Added helper methods to invoke interface methods.
2007-07-25 18:18:49 +00:00
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|