mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
autoconvert: Remove unused internal parameter
This commit is contained in:
parent
afea9c6fe1
commit
ead6db4277
1 changed files with 6 additions and 7 deletions
|
@ -91,7 +91,7 @@ static void gst_auto_convert_get_property (GObject * object,
|
||||||
static void gst_auto_convert_dispose (GObject * object);
|
static void gst_auto_convert_dispose (GObject * object);
|
||||||
|
|
||||||
static GstElement *gst_auto_convert_get_subelement (GstAutoConvert *
|
static GstElement *gst_auto_convert_get_subelement (GstAutoConvert *
|
||||||
autoconvert, gboolean query_only);
|
autoconvert);
|
||||||
static GstPad *gst_auto_convert_get_internal_sinkpad (GstAutoConvert *
|
static GstPad *gst_auto_convert_get_internal_sinkpad (GstAutoConvert *
|
||||||
autoconvert);
|
autoconvert);
|
||||||
static GstPad *gst_auto_convert_get_internal_srcpad (GstAutoConvert *
|
static GstPad *gst_auto_convert_get_internal_srcpad (GstAutoConvert *
|
||||||
|
@ -390,8 +390,7 @@ get_pad_by_direction (GstElement * element, GstPadDirection direction)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstElement *
|
static GstElement *
|
||||||
gst_auto_convert_get_subelement (GstAutoConvert * autoconvert,
|
gst_auto_convert_get_subelement (GstAutoConvert * autoconvert)
|
||||||
gboolean query_only)
|
|
||||||
{
|
{
|
||||||
GstElement *element = NULL;
|
GstElement *element = NULL;
|
||||||
|
|
||||||
|
@ -737,7 +736,7 @@ gst_auto_convert_sink_setcaps (GstAutoConvert * autoconvert, GstCaps * caps)
|
||||||
gst_caps_unref (current_caps);
|
gst_caps_unref (current_caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
subelement = gst_auto_convert_get_subelement (autoconvert, TRUE);
|
subelement = gst_auto_convert_get_subelement (autoconvert);
|
||||||
|
|
||||||
if (subelement) {
|
if (subelement) {
|
||||||
if (gst_pad_peer_query_accept_caps (autoconvert->current_internal_srcpad,
|
if (gst_pad_peer_query_accept_caps (autoconvert->current_internal_srcpad,
|
||||||
|
@ -949,7 +948,7 @@ gst_auto_convert_sink_chain (GstPad * pad, GstObject * parent,
|
||||||
ret = gst_pad_push (internal_srcpad, buffer);
|
ret = gst_pad_push (internal_srcpad, buffer);
|
||||||
gst_object_unref (internal_srcpad);
|
gst_object_unref (internal_srcpad);
|
||||||
if (ret != GST_FLOW_OK) {
|
if (ret != GST_FLOW_OK) {
|
||||||
GstElement *child = gst_auto_convert_get_subelement (autoconvert, TRUE);
|
GstElement *child = gst_auto_convert_get_subelement (autoconvert);
|
||||||
GST_DEBUG_OBJECT (autoconvert,
|
GST_DEBUG_OBJECT (autoconvert,
|
||||||
"Child element %" GST_PTR_FORMAT "returned flow %s", child,
|
"Child element %" GST_PTR_FORMAT "returned flow %s", child,
|
||||||
gst_flow_get_name (ret));
|
gst_flow_get_name (ret));
|
||||||
|
@ -1021,7 +1020,7 @@ gst_auto_convert_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
subelement = gst_auto_convert_get_subelement (autoconvert, TRUE);
|
subelement = gst_auto_convert_get_subelement (autoconvert);
|
||||||
if (subelement) {
|
if (subelement) {
|
||||||
GstPad *sub_sinkpad = get_pad_by_direction (subelement, GST_PAD_SINK);
|
GstPad *sub_sinkpad = get_pad_by_direction (subelement, GST_PAD_SINK);
|
||||||
|
|
||||||
|
@ -1223,7 +1222,7 @@ gst_auto_convert_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
subelement = gst_auto_convert_get_subelement (autoconvert, TRUE);
|
subelement = gst_auto_convert_get_subelement (autoconvert);
|
||||||
if (subelement) {
|
if (subelement) {
|
||||||
GstPad *sub_srcpad = get_pad_by_direction (subelement, GST_PAD_SRC);
|
GstPad *sub_srcpad = get_pad_by_direction (subelement, GST_PAD_SRC);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue