wtay gst-plugins-base: gst-plugins-base/ gst-plugins-base/docs/libs/ gst-plugins-base/gst-libs/gst/rtsp/ gst-plugins-base/win32/common/
[email protected] Thu, 8 Jan 2009 09:18:38 -0800 (PST)
| Newsgroups | gmane.comp.video.gstreamer.cvs |
|---|---|
| Message-ID | <[email protected]> |
--===============2981274789129535680==
CVS Root: /cvs/gstreamer
Module: gst-plugins-base
Changes by: wtay
Date: Thu Jan 08 2009 17:18:38 UTC
Log message:
* docs/libs/gst-plugins-base-libs-sections.txt:
* gst-libs/gst/rtsp/gstrtspurl.c: (register_rtsp_url_type),
(gst_rtsp_url_get_type), (gst_rtsp_url_copy):
* gst-libs/gst/rtsp/gstrtspurl.h:
* win32/common/libgstrtsp.def:
Add GType for GstRTSPUrl and expose a copy function because we can.
API: gst_rtsp_url_copy()
Fixes #567027.
Modified files:
. : ChangeLog
docs/libs : gst-plugins-base-libs-sections.txt
gst-libs/gst/rtsp: gstrtspurl.c gstrtspurl.h
win32/common : libgstrtsp.def
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.4284&r2=1.4285
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/docs/libs/gst-plugins-base-libs-sections.txt.diff?r1=1.62&r2=1.63
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspurl.c.diff?r1=1.2&r2=1.3
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspurl.h.diff?r1=1.2&r2=1.3
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/win32/common/libgstrtsp.def.diff?r1=1.4&r2=1.5
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v
retrieving revision 1.4284
retrieving revision 1.4285
diff -u -d -r1.4284 -r1.4285
--- ChangeLog 7 Jan 2009 18:36:01 -0000 1.4284
+++ ChangeLog 8 Jan 2009 17:18:22 -0000 1.4285
@@ -1,3 +1,14 @@
+2009-01-08 Wim Taymans <[email protected]>
+
+ * docs/libs/gst-plugins-base-libs-sections.txt:
+ * gst-libs/gst/rtsp/gstrtspurl.c: (register_rtsp_url_type),
+ (gst_rtsp_url_get_type), (gst_rtsp_url_copy):
+ * gst-libs/gst/rtsp/gstrtspurl.h:
+ * win32/common/libgstrtsp.def:
+ Add GType for GstRTSPUrl and expose a copy function because we can.
+ API: gst_rtsp_url_copy()
+ Fixes #567027.
2009-01-07 Sebastian Dröge <[email protected]>
* configure.ac:
Index: gst-plugins-base-libs-sections.txt
RCS file: /cvs/gstreamer/gst-plugins-base/docs/libs/gst-plugins-base-libs-sections.txt,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- gst-plugins-base-libs-sections.txt 5 Jan 2009 23:04:55 -0000 1.62
+++ gst-plugins-base-libs-sections.txt 8 Jan 2009 17:18:23 -0000 1.63
@@ -1242,10 +1242,13 @@
GST_RTSP_DEFAULT_PORT
GstRTSPUrl
gst_rtsp_url_parse
+gst_rtsp_url_copy
gst_rtsp_url_free
gst_rtsp_url_get_request_uri
gst_rtsp_url_set_port
gst_rtsp_url_get_port
+<SUBSECTION Standard>
+gst_rtsp_url_get_type
</SECTION>
<SECTION>
Index: gstrtspurl.c
RCS file: /cvs/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspurl.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gstrtspurl.c 25 Jul 2007 11:22:30 -0000 1.2
+++ gstrtspurl.c 8 Jan 2009 17:18:23 -0000 1.3
@@ -58,6 +58,24 @@
#include "gstrtspurl.h"
+static void
+register_rtsp_url_type (GType * id)
+{
+ *id = g_boxed_type_register_static ("GstRTSPUrl",
+ (GBoxedCopyFunc) gst_rtsp_url_copy, (GBoxedFreeFunc) gst_rtsp_url_free);
+}
+GType
+gst_rtsp_url_get_type (void)
+ static GType id;
+ static GOnce once = G_ONCE_INIT;
+ g_once (&once, (GThreadFunc) register_rtsp_url_type, &id);
+ return id;
#define RTSP_PROTO "rtsp://"
#define RTSP_PROTO_LEN 7
#define RTSPU_PROTO "rtspu://"
@@ -177,6 +195,37 @@
}
/**
+ * gst_rtsp_url_copy:
+ * @url: a #GstRTSPUrl
+ *
+ * Make a copy of @url.
+ * Returns: a copy of @url. Free with gst_rtsp_url_free () after usage.
+ * Since: 0.10.22
+ */
+GstRTSPUrl *
+gst_rtsp_url_copy (GstRTSPUrl * url)
+ GstRTSPUrl *res;
+ g_return_val_if_fail (url != NULL, NULL);
+ res = g_new0 (GstRTSPUrl, 1);
+ res->transports = url->transports;
+ res->family = url->family;
+ res->user = g_strdup (url->user);
+ res->passwd = g_strdup (url->passwd);
+ res->host = g_strdup (url->host);
+ res->port = url->port;
+ res->abspath = g_strdup (url->abspath);
+ res->query = g_strdup (url->query);
+ return res;
+/**
* gst_rtsp_url_free:
* @url: a #GstRTSPUrl
*
Index: gstrtspurl.h
RCS file: /cvs/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspurl.h,v
--- gstrtspurl.h 24 Jul 2007 19:19:33 -0000 1.2
+++ gstrtspurl.h 8 Jan 2009 17:18:23 -0000 1.3
@@ -44,6 +44,7 @@
#define __GST_RTSP_URL_H__
#include <glib.h>
+#include <glib-object.h>
#include <gst/rtsp/gstrtspdefs.h>
#include <gst/rtsp/gstrtsptransport.h>
@@ -57,6 +58,8 @@
*/
#define GST_RTSP_DEFAULT_PORT 554
+#define GST_TYPE_RTSP_URL (gst_rtsp_url_get_type())
typedef struct _GstRTSPUrl GstRTSPUrl;
@@ -83,7 +86,10 @@
gchar *query;
};
+GType gst_rtsp_url_get_type (void);
GstRTSPResult gst_rtsp_url_parse (const gchar *urlstr, GstRTSPUrl **url);
+GstRTSPUrl* gst_rtsp_url_copy (GstRTSPUrl *url);
void gst_rtsp_url_free (GstRTSPUrl *url);
gchar* gst_rtsp_url_get_request_uri (GstRTSPUrl *url);
Index: libgstrtsp.def
RCS file: /cvs/gstreamer/gst-plugins-base/win32/common/libgstrtsp.def,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- libgstrtsp.def 4 Jun 2008 21:48:26 -0000 1.4
+++ libgstrtsp.def 8 Jan 2009 17:18:24 -0000 1.5
@@ -75,9 +75,11 @@
gst_rtsp_transport_init
gst_rtsp_transport_new
gst_rtsp_transport_parse
+ gst_rtsp_url_copy
gst_rtsp_url_free
gst_rtsp_url_get_port
gst_rtsp_url_get_request_uri
+ gst_rtsp_url_get_type
gst_rtsp_url_parse
gst_rtsp_url_set_port
gst_rtsp_version_as_text
--===============2981274789129535680==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
--===============2981274789129535680==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose
--===============2981274789129535680==--