mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
basetransform: small cleanups
This commit is contained in:
parent
db1318ab4a
commit
f9c4b70a98
1 changed files with 3 additions and 3 deletions
|
@ -959,8 +959,6 @@ gst_base_transform_configure_caps (GstBaseTransform * trans, GstCaps * in,
|
|||
ret = klass->set_caps (trans, in, out);
|
||||
}
|
||||
|
||||
trans->negotiated = ret;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -1274,7 +1272,7 @@ gst_base_transform_setcaps (GstBaseTransform * trans, GstPad * pad,
|
|||
trans->priv->reconfigure = FALSE;
|
||||
GST_OBJECT_UNLOCK (trans->sinkpad);
|
||||
|
||||
/* we know this will work, we implement the setcaps */
|
||||
/* let downstream know about our caps */
|
||||
gst_pad_push_event (trans->srcpad, gst_event_new_caps (outcaps));
|
||||
|
||||
if (ret) {
|
||||
|
@ -1286,7 +1284,9 @@ done:
|
|||
if (outcaps)
|
||||
gst_caps_unref (outcaps);
|
||||
|
||||
GST_OBJECT_LOCK (trans);
|
||||
trans->negotiated = ret;
|
||||
GST_OBJECT_UNLOCK (trans);
|
||||
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in a new issue