summaryrefslogtreecommitdiffstats
path: root/gst/effectv/gstrev.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/effectv/gstrev.c')
-rw-r--r--gst/effectv/gstrev.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gst/effectv/gstrev.c b/gst/effectv/gstrev.c
index 25697688..f0d5302b 100644
--- a/gst/effectv/gstrev.c
+++ b/gst/effectv/gstrev.c
@@ -126,28 +126,6 @@ gst_revtv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
return ret;
}
-static gboolean
-gst_revtv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
- guint * size)
-{
- GstRevTV *filter = GST_REVTV (btrans);
- GstStructure *structure;
- gboolean ret = FALSE;
- gint width, height;
-
- structure = gst_caps_get_structure (caps, 0);
-
- if (gst_structure_get_int (structure, "width", &width) &&
- gst_structure_get_int (structure, "height", &height)) {
- *size = width * height * 32 / 8;
- ret = TRUE;
- GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
- }
-
- return ret;
-}
-
static GstFlowReturn
gst_revtv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out)
{
@@ -267,7 +245,6 @@ gst_revtv_class_init (GstRevTVClass * klass)
1, 200, 50, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_revtv_set_caps);
- trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_revtv_get_unit_size);
trans_class->transform = GST_DEBUG_FUNCPTR (gst_revtv_transform);
}