gst-libs/gst/interfaces/: Fix marshaller for the send signal.

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_rtsp_extension_iface_init),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Fix marshaller for the send signal.
Add URL to stream selection interface method.
This commit is contained in:
Wim Taymans 2007-07-26 15:48:01 +00:00
parent 50a3a239a0
commit 6d1a34eff2
5 changed files with 21 additions and 7 deletions

View file

@ -1,3 +1,14 @@
2007-07-26 Wim Taymans <wim.taymans@gmail.com>
* gst-libs/gst/interfaces/Makefile.am:
* gst-libs/gst/interfaces/interfaces-marshal.list:
* gst-libs/gst/interfaces/rtspextension.c:
(gst_rtsp_extension_iface_init),
(gst_rtsp_extension_stream_select), (gst_rtsp_extension_send):
* gst-libs/gst/interfaces/rtspextension.h:
Fix marshaller for the send signal.
Add URL to stream selection interface method.
2007-07-26 Jan Schmidt <thaytan@mad.scientist.com> 2007-07-26 Jan Schmidt <thaytan@mad.scientist.com>
* gst-libs/gst/riff/Makefile.am: * gst-libs/gst/riff/Makefile.am:

View file

@ -3,3 +3,4 @@ VOID:OBJECT,POINTER
VOID:OBJECT,STRING VOID:OBJECT,STRING
VOID:OBJECT,ULONG VOID:OBJECT,ULONG
VOID:OBJECT,INT VOID:OBJECT,INT
ENUM:POINTER,POINTER

View file

@ -35,6 +35,7 @@
#include "config.h" #include "config.h"
#endif #endif
#include "interfaces-marshal.h"
#include "rtspextension.h" #include "rtspextension.h"
static void gst_rtsp_extension_iface_init (GstRTSPExtension * iface); static void gst_rtsp_extension_iface_init (GstRTSPExtension * iface);
@ -80,8 +81,8 @@ gst_rtsp_extension_iface_init (GstRTSPExtension * iface)
gst_rtsp_extension_signals[SIGNAL_SEND] = gst_rtsp_extension_signals[SIGNAL_SEND] =
g_signal_new ("send", G_TYPE_FROM_CLASS (iface), g_signal_new ("send", G_TYPE_FROM_CLASS (iface),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPExtensionInterface, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPExtensionInterface,
send), NULL, NULL, g_cclosure_marshal_VOID__POINTER, send), NULL, NULL, gst_interfaces_marshal_ENUM__POINTER_POINTER,
G_TYPE_NONE, 1, G_TYPE_POINTER); G_TYPE_ENUM, 2, G_TYPE_POINTER, G_TYPE_POINTER);
initialized = TRUE; initialized = TRUE;
} }
} }
@ -181,14 +182,14 @@ gst_rtsp_extension_get_transports (GstRTSPExtension * ext,
} }
GstRTSPResult GstRTSPResult
gst_rtsp_extension_stream_select (GstRTSPExtension * ext) gst_rtsp_extension_stream_select (GstRTSPExtension * ext, GstRTSPUrl * url)
{ {
GstRTSPExtensionInterface *iface; GstRTSPExtensionInterface *iface;
GstRTSPResult res = GST_RTSP_OK; GstRTSPResult res = GST_RTSP_OK;
iface = GST_RTSP_EXTENSION_GET_IFACE (ext); iface = GST_RTSP_EXTENSION_GET_IFACE (ext);
if (iface->stream_select) if (iface->stream_select)
res = iface->stream_select (ext); res = iface->stream_select (ext, url);
return res; return res;
} }

View file

@ -27,6 +27,7 @@
#include <gst/sdp/gstsdpmessage.h> #include <gst/sdp/gstsdpmessage.h>
#include <gst/rtsp/gstrtsptransport.h> #include <gst/rtsp/gstrtsptransport.h>
#include <gst/rtsp/gstrtspmessage.h> #include <gst/rtsp/gstrtspmessage.h>
#include <gst/rtsp/gstrtspurl.h>
G_BEGIN_DECLS G_BEGIN_DECLS
@ -58,7 +59,7 @@ struct _GstRTSPExtensionInterface {
GstRTSPResult (*get_transports) (GstRTSPExtension *ext, GstRTSPLowerTrans protocols, gchar **transport); GstRTSPResult (*get_transports) (GstRTSPExtension *ext, GstRTSPLowerTrans protocols, gchar **transport);
GstRTSPResult (*stream_select) (GstRTSPExtension *ext); GstRTSPResult (*stream_select) (GstRTSPExtension *ext, GstRTSPUrl *url);
/* signals */ /* signals */
GstRTSPResult (*send) (GstRTSPExtension *ext, GstRTSPMessage *req, GstRTSPMessage *resp); GstRTSPResult (*send) (GstRTSPExtension *ext, GstRTSPMessage *req, GstRTSPMessage *resp);
@ -81,7 +82,7 @@ GstRTSPResult gst_rtsp_extension_setup_media (GstRTSPExtension *ext, Gst
gboolean gst_rtsp_extension_configure_stream (GstRTSPExtension *ext, GstCaps *caps); gboolean gst_rtsp_extension_configure_stream (GstRTSPExtension *ext, GstCaps *caps);
GstRTSPResult gst_rtsp_extension_get_transports (GstRTSPExtension *ext, GstRTSPLowerTrans protocols, GstRTSPResult gst_rtsp_extension_get_transports (GstRTSPExtension *ext, GstRTSPLowerTrans protocols,
gchar **transport); gchar **transport);
GstRTSPResult gst_rtsp_extension_stream_select (GstRTSPExtension *ext); GstRTSPResult gst_rtsp_extension_stream_select (GstRTSPExtension *ext, GstRTSPUrl *url);
/* signal emision */ /* signal emision */
GstRTSPResult gst_rtsp_extension_send (GstRTSPExtension *ext, GstRTSPMessage *req, GstRTSPResult gst_rtsp_extension_send (GstRTSPExtension *ext, GstRTSPMessage *req,