mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 21:31:18 +00:00
gst/base/gstbasetransform.c: Check if the caps are NULL, this can happen if the element is shutting down and the pad ...
Original commit message from CVS: * gst/base/gstbasetransform.c: (gst_base_transform_prepare_output_buf), (gst_base_transform_event): Check if the caps are NULL, this can happen if the element is shutting down and the pad caps are set to NULL.
This commit is contained in:
parent
ed4d1cee0e
commit
514648a970
3 changed files with 16 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-11-16 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/base/gstbasetransform.c:
|
||||||
|
(gst_base_transform_prepare_output_buf),
|
||||||
|
(gst_base_transform_event):
|
||||||
|
Check if the caps are NULL, this can happen if the element
|
||||||
|
is shutting down and the pad caps are set to NULL.
|
||||||
|
|
||||||
2005-11-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-11-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst/elements/gsttee.c: (gst_tee_init):
|
* gst/elements/gsttee.c: (gst_tee_init):
|
||||||
|
|
|
@ -812,6 +812,7 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
||||||
/* out_caps is the caps of the src pad gathered through the GST_PAD_CAPS
|
/* out_caps is the caps of the src pad gathered through the GST_PAD_CAPS
|
||||||
macro. If a set_caps occurs during this function this caps will become
|
macro. If a set_caps occurs during this function this caps will become
|
||||||
invalid. We want to keep them during preparation of the output buffer. */
|
invalid. We want to keep them during preparation of the output buffer. */
|
||||||
|
if (out_caps)
|
||||||
gst_caps_ref (out_caps);
|
gst_caps_ref (out_caps);
|
||||||
|
|
||||||
/* see if the subclass wants to alloc a buffer */
|
/* see if the subclass wants to alloc a buffer */
|
||||||
|
@ -873,6 +874,7 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
if (out_caps)
|
||||||
gst_caps_unref (out_caps);
|
gst_caps_unref (out_caps);
|
||||||
trans->delay_configure = FALSE;
|
trans->delay_configure = FALSE;
|
||||||
|
|
||||||
|
|
|
@ -812,6 +812,7 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
||||||
/* out_caps is the caps of the src pad gathered through the GST_PAD_CAPS
|
/* out_caps is the caps of the src pad gathered through the GST_PAD_CAPS
|
||||||
macro. If a set_caps occurs during this function this caps will become
|
macro. If a set_caps occurs during this function this caps will become
|
||||||
invalid. We want to keep them during preparation of the output buffer. */
|
invalid. We want to keep them during preparation of the output buffer. */
|
||||||
|
if (out_caps)
|
||||||
gst_caps_ref (out_caps);
|
gst_caps_ref (out_caps);
|
||||||
|
|
||||||
/* see if the subclass wants to alloc a buffer */
|
/* see if the subclass wants to alloc a buffer */
|
||||||
|
@ -873,6 +874,7 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
if (out_caps)
|
||||||
gst_caps_unref (out_caps);
|
gst_caps_unref (out_caps);
|
||||||
trans->delay_configure = FALSE;
|
trans->delay_configure = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue