kate: minor cleanup
This commit is contained in:
parent
6e5db57d24
commit
de3bd76051
@ -136,7 +136,7 @@ static void gst_kate_enc_get_property (GObject * object, guint prop_id,
|
|||||||
GValue * value, GParamSpec * pspec);
|
GValue * value, GParamSpec * pspec);
|
||||||
static void gst_kate_enc_dispose (GObject * object);
|
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,
|
static GstFlowReturn gst_kate_enc_chain (GstPad * pad, GstObject * parent,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
static GstStateChangeReturn gst_kate_enc_change_state (GstElement * element,
|
static GstStateChangeReturn gst_kate_enc_change_state (GstElement * element,
|
||||||
@ -504,12 +504,8 @@ gst_kate_enc_set_metadata (GstKateEnc * ke)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
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);
|
GST_LOG_OBJECT (ke, "input caps: %" GST_PTR_FORMAT, caps);
|
||||||
|
|
||||||
/* One day we could try to automatically set the category based on the
|
/* 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;
|
GstCaps *caps;
|
||||||
|
|
||||||
gst_event_parse_caps (event, &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);
|
gst_event_unref (event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,7 @@ gst_kate_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||||||
GstKateParseClass *klass;
|
GstKateParseClass *klass;
|
||||||
GstKateParse *parse;
|
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));
|
klass = GST_KATE_PARSE_CLASS (G_OBJECT_GET_CLASS (parse));
|
||||||
|
|
||||||
g_assert (klass->parse_packet != NULL);
|
g_assert (klass->parse_packet != NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user