[0.10] gst-plugins-bad: patchdetect: remove (leaking) dead code

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 18 05:29:43 PST 2012


Module: gst-plugins-bad
Branch: 0.10
Commit: e63cb48addc3b4f6fd97e8b24411bc53f9cf28d0
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=e63cb48addc3b4f6fd97e8b24411bc53f9cf28d0

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Thu Jan 12 17:11:14 2012 +0000

patchdetect: remove (leaking) dead code

---

 gst/patchdetect/gstpatchdetect.c |    6 ------
 gst/patchdetect/gstpatchdetect.h |    3 ---
 2 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/gst/patchdetect/gstpatchdetect.c b/gst/patchdetect/gstpatchdetect.c
index 8926a59..71308db 100644
--- a/gst/patchdetect/gstpatchdetect.c
+++ b/gst/patchdetect/gstpatchdetect.c
@@ -147,12 +147,6 @@ static void
 gst_patchdetect_init (GstPatchdetect * patchdetect,
     GstPatchdetectClass * patchdetect_class)
 {
-
-  patchdetect->sinkpad =
-      gst_pad_new_from_static_template (&gst_patchdetect_sink_template, "sink");
-
-  patchdetect->srcpad =
-      gst_pad_new_from_static_template (&gst_patchdetect_src_template, "src");
 }
 
 void
diff --git a/gst/patchdetect/gstpatchdetect.h b/gst/patchdetect/gstpatchdetect.h
index 1f29218..acf23e0 100644
--- a/gst/patchdetect/gstpatchdetect.h
+++ b/gst/patchdetect/gstpatchdetect.h
@@ -37,9 +37,6 @@ struct _GstPatchdetect
 {
   GstBaseTransform base_patchdetect;
 
-  GstPad *sinkpad;
-  GstPad *srcpad;
-
   GstVideoFormat format;
   int width;
   int height;



More information about the gstreamer-commits mailing list