From de3bd76051a474ffd9a5d2c3b7c63e3b32d22fb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 27 Apr 2013 12:06:28 +0100 Subject: [PATCH] kate: minor cleanup --- ext/kate/gstkateenc.c | 10 +++------- ext/kate/gstkateparse.c | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c index b2865f7d4f..371a6a2a31 100644 --- a/ext/kate/gstkateenc.c +++ b/ext/kate/gstkateenc.c @@ -136,7 +136,7 @@ static void gst_kate_enc_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static void gst_kate_enc_dispose (GObject * object); -static gboolean gst_kate_enc_setcaps (GstPad * pad, GstCaps * caps); +static gboolean gst_kate_enc_setcaps (GstKateEnc * ke, GstCaps * caps); static GstFlowReturn gst_kate_enc_chain (GstPad * pad, GstObject * parent, GstBuffer * buf); static GstStateChangeReturn gst_kate_enc_change_state (GstElement * element, @@ -504,12 +504,8 @@ gst_kate_enc_set_metadata (GstKateEnc * ke) } static gboolean -gst_kate_enc_setcaps (GstPad * pad, GstCaps * caps) +gst_kate_enc_setcaps (GstKateEnc * ke, GstCaps * caps) { - GstKateEnc *ke; - - ke = GST_KATE_ENC (GST_PAD_PARENT (pad)); - GST_LOG_OBJECT (ke, "input caps: %" GST_PTR_FORMAT, caps); /* One day we could try to automatically set the category based on the @@ -1222,7 +1218,7 @@ gst_kate_enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) GstCaps *caps; gst_event_parse_caps (event, &caps); - ret = gst_kate_enc_setcaps (pad, caps); + ret = gst_kate_enc_setcaps (ke, caps); gst_event_unref (event); break; } diff --git a/ext/kate/gstkateparse.c b/ext/kate/gstkateparse.c index eef7acf020..7bc5173031 100644 --- a/ext/kate/gstkateparse.c +++ b/ext/kate/gstkateparse.c @@ -391,7 +391,7 @@ gst_kate_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) GstKateParseClass *klass; GstKateParse *parse; - parse = GST_KATE_PARSE (GST_PAD_PARENT (pad)); + parse = GST_KATE_PARSE (parent); klass = GST_KATE_PARSE_CLASS (G_OBJECT_GET_CLASS (parse)); g_assert (klass->parse_packet != NULL); -- 2.34.1