aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-07-03 11:51:29 +0800
committermarcus <marcus@FreeBSD.org>2004-07-03 11:51:29 +0800
commit133bdeb86a04a296b1af4b9df1195cd08d5e3e5a (patch)
treecfa43b9c0fb03f65b9f3f099bbda0fc7437b835c /multimedia
parent482880a3314b9b4be69e73cf0c7f8d3322339d15 (diff)
downloadfreebsd-ports-gnome-133bdeb86a04a296b1af4b9df1195cd08d5e3e5a.tar.gz
freebsd-ports-gnome-133bdeb86a04a296b1af4b9df1195cd08d5e3e5a.tar.zst
freebsd-ports-gnome-133bdeb86a04a296b1af4b9df1195cd08d5e3e5a.zip
* Fix a free'd memory access crash that occurs with malloc debugging enabled [1]
* Use a better fix from GStreamer CVS to fix the double free in gst-inspect [2] Found by: monkey-bubble [1] Obtained from: GStreamer CVS [2]
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/gstreamer/Makefile2
-rw-r--r--multimedia/gstreamer/files/patch-gst_schedulers_gstoptimalscheduler.c20
-rw-r--r--multimedia/gstreamer/files/patch-tools_gst-inspect.c14
-rw-r--r--multimedia/gstreamer80/Makefile2
-rw-r--r--multimedia/gstreamer80/files/patch-gst_schedulers_gstoptimalscheduler.c20
-rw-r--r--multimedia/gstreamer80/files/patch-tools_gst-inspect.c14
6 files changed, 56 insertions, 16 deletions
diff --git a/multimedia/gstreamer/Makefile b/multimedia/gstreamer/Makefile
index f1e2c6984a3c..4bcf0f28a76e 100644
--- a/multimedia/gstreamer/Makefile
+++ b/multimedia/gstreamer/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gstreamer
PORTVERSION= 0.8.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GNOME} \
http://gstreamer.freedesktop.org/src/gstreamer/
diff --git a/multimedia/gstreamer/files/patch-gst_schedulers_gstoptimalscheduler.c b/multimedia/gstreamer/files/patch-gst_schedulers_gstoptimalscheduler.c
new file mode 100644
index 000000000000..2e9df12d13c2
--- /dev/null
+++ b/multimedia/gstreamer/files/patch-gst_schedulers_gstoptimalscheduler.c
@@ -0,0 +1,20 @@
+--- gst/schedulers/gstoptimalscheduler.c.orig Fri Jul 2 23:38:37 2004
++++ gst/schedulers/gstoptimalscheduler.c Fri Jul 2 23:38:42 2004
+@@ -2276,7 +2277,7 @@
+
+ GST_LOG ("elements still have links with other elements in the group");
+
+- while (group->elements)
++ while (group && group->elements)
+ for (l = group->elements; l && l->data; l = l->next) {
+ GstElement *element = (GstElement *) l->data;
+
+@@ -2309,7 +2310,7 @@
+ }
+
+ if (linkcount < 2) {
+- remove_from_group (group, element);
++ group = remove_from_group (group, element);
+ }
+ /* if linkcount == 2, it will be unlinked later on */
+ else if (linkcount > 2) {
diff --git a/multimedia/gstreamer/files/patch-tools_gst-inspect.c b/multimedia/gstreamer/files/patch-tools_gst-inspect.c
index 7d50fe1ac46d..e582407ee53a 100644
--- a/multimedia/gstreamer/files/patch-tools_gst-inspect.c
+++ b/multimedia/gstreamer/files/patch-tools_gst-inspect.c
@@ -1,10 +1,10 @@
---- tools/gst-inspect.c.orig Wed Jun 30 01:48:58 2004
-+++ tools/gst-inspect.c Wed Jun 30 01:49:18 2004
-@@ -799,7 +799,6 @@
+--- tools/gst-inspect.c.orig Mon May 24 12:12:28 2004
++++ tools/gst-inspect.c Fri Jul 2 23:49:02 2004
+@@ -797,7 +797,6 @@
+ g_free (indent);
+ }
- g_free (query);
+- g_free (query);
if (found_signals) {
-- g_slist_foreach (found_signals, (GFunc) g_free, NULL);
+ g_slist_foreach (found_signals, (GFunc) g_free, NULL);
g_slist_free (found_signals);
- }
- }
diff --git a/multimedia/gstreamer80/Makefile b/multimedia/gstreamer80/Makefile
index f1e2c6984a3c..4bcf0f28a76e 100644
--- a/multimedia/gstreamer80/Makefile
+++ b/multimedia/gstreamer80/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gstreamer
PORTVERSION= 0.8.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GNOME} \
http://gstreamer.freedesktop.org/src/gstreamer/
diff --git a/multimedia/gstreamer80/files/patch-gst_schedulers_gstoptimalscheduler.c b/multimedia/gstreamer80/files/patch-gst_schedulers_gstoptimalscheduler.c
new file mode 100644
index 000000000000..2e9df12d13c2
--- /dev/null
+++ b/multimedia/gstreamer80/files/patch-gst_schedulers_gstoptimalscheduler.c
@@ -0,0 +1,20 @@
+--- gst/schedulers/gstoptimalscheduler.c.orig Fri Jul 2 23:38:37 2004
++++ gst/schedulers/gstoptimalscheduler.c Fri Jul 2 23:38:42 2004
+@@ -2276,7 +2277,7 @@
+
+ GST_LOG ("elements still have links with other elements in the group");
+
+- while (group->elements)
++ while (group && group->elements)
+ for (l = group->elements; l && l->data; l = l->next) {
+ GstElement *element = (GstElement *) l->data;
+
+@@ -2309,7 +2310,7 @@
+ }
+
+ if (linkcount < 2) {
+- remove_from_group (group, element);
++ group = remove_from_group (group, element);
+ }
+ /* if linkcount == 2, it will be unlinked later on */
+ else if (linkcount > 2) {
diff --git a/multimedia/gstreamer80/files/patch-tools_gst-inspect.c b/multimedia/gstreamer80/files/patch-tools_gst-inspect.c
index 7d50fe1ac46d..e582407ee53a 100644
--- a/multimedia/gstreamer80/files/patch-tools_gst-inspect.c
+++ b/multimedia/gstreamer80/files/patch-tools_gst-inspect.c
@@ -1,10 +1,10 @@
---- tools/gst-inspect.c.orig Wed Jun 30 01:48:58 2004
-+++ tools/gst-inspect.c Wed Jun 30 01:49:18 2004
-@@ -799,7 +799,6 @@
+--- tools/gst-inspect.c.orig Mon May 24 12:12:28 2004
++++ tools/gst-inspect.c Fri Jul 2 23:49:02 2004
+@@ -797,7 +797,6 @@
+ g_free (indent);
+ }
- g_free (query);
+- g_free (query);
if (found_signals) {
-- g_slist_foreach (found_signals, (GFunc) g_free, NULL);
+ g_slist_foreach (found_signals, (GFunc) g_free, NULL);
g_slist_free (found_signals);
- }
- }