From: Tim-Philipp Müller Date: Sat, 27 Apr 2013 11:06:28 +0000 (+0100) Subject: kate: minor cleanup X-Git-Tag: 1.19.3~507^2~13762 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de3bd76051a474ffd9a5d2c3b7c63e3b32d22fb0;p=platform%2Fupstream%2Fgstreamer.git kate: minor cleanup --- 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);