From d3aa5300b7c4ca9dd295e975255aa4c687966aaa Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Wed, 27 Dec 2006 12:08:13 +0000 Subject: [PATCH] sys/: Plug a caps leak. Original commit message from CVS: 2006-12-27 Julien MOUTTE * sys/ximage/ximagesink.c: (gst_ximagesink_setcaps): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_setcaps): Plug a caps leak. * win32/common/config.h: Updated. --- ChangeLog | 7 +++++++ sys/ximage/ximagesink.c | 1 + sys/xvimage/xvimagesink.c | 1 + win32/common/config.h | 8 ++++---- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b19be93b16..7f6b32e129 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-27 Julien MOUTTE + + * sys/ximage/ximagesink.c: (gst_ximagesink_setcaps): + * sys/xvimage/xvimagesink.c: (gst_xvimagesink_setcaps): Plug a + caps leak. + * win32/common/config.h: Updated. + 2006-12-22 Stefan Kost * tests/check/elements/gdpdepay.c: (cleanup_gdpdepay), diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index bd24a1d6a1..9644b7c6d1 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -1296,6 +1296,7 @@ gst_ximagesink_setcaps (GstBaseSink * bsink, GstCaps * caps) GST_DEBUG_OBJECT (ximagesink, "intersection returned %" GST_PTR_FORMAT, intersection); if (gst_caps_is_empty (intersection)) { + gst_caps_unref (intersection); return FALSE; } diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 9b05666317..34eb74fbbb 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1769,6 +1769,7 @@ gst_xvimagesink_setcaps (GstBaseSink * bsink, GstCaps * caps) GST_DEBUG_OBJECT (xvimagesink, "intersection returned %" GST_PTR_FORMAT, intersection); if (gst_caps_is_empty (intersection)) { + gst_caps_unref (intersection); return FALSE; } diff --git a/win32/common/config.h b/win32/common/config.h index 07c58189f8..46a9e4fcac 100644 --- a/win32/common/config.h +++ b/win32/common/config.h @@ -39,7 +39,7 @@ #define GST_LICENSE "LGPL" /* package name in plugins */ -#define GST_PACKAGE_NAME "GStreamer Base Plug-ins source release" +#define GST_PACKAGE_NAME "GStreamer Base Plug-ins CVS/prerelease" /* package origin */ #define GST_PACKAGE_ORIGIN "Unknown package origin" @@ -211,13 +211,13 @@ #undef PACKAGE_NAME "GStreamer Base Plug-ins" /* Define to the full name and version of this package. */ -#undef PACKAGE_STRING "GStreamer Base Plug-ins 0.10.11" +#undef PACKAGE_STRING "GStreamer Base Plug-ins 0.10.11.1" /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME "gst-plugins-base" /* Define to the version of this package. */ -#undef PACKAGE_VERSION "0.10.11" +#undef PACKAGE_VERSION "0.10.11.1" /* directory where plugins are located */ #undef PLUGINDIR @@ -241,7 +241,7 @@ #undef STDC_HEADERS /* Version number of package */ -#define VERSION "0.10.11" +#define VERSION "0.10.11.1" /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */