mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 07:08:23 +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>
|
||||
|
||||
* gst/elements/gsttee.c: (gst_tee_init):
|
||||
|
|
|
@ -812,7 +812,8 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
|||
/* 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
|
||||
invalid. We want to keep them during preparation of the output buffer. */
|
||||
gst_caps_ref (out_caps);
|
||||
if (out_caps)
|
||||
gst_caps_ref (out_caps);
|
||||
|
||||
/* see if the subclass wants to alloc a buffer */
|
||||
if (bclass->prepare_output_buffer) {
|
||||
|
@ -873,7 +874,8 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
|||
}
|
||||
|
||||
done:
|
||||
gst_caps_unref (out_caps);
|
||||
if (out_caps)
|
||||
gst_caps_unref (out_caps);
|
||||
trans->delay_configure = FALSE;
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -812,7 +812,8 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
|||
/* 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
|
||||
invalid. We want to keep them during preparation of the output buffer. */
|
||||
gst_caps_ref (out_caps);
|
||||
if (out_caps)
|
||||
gst_caps_ref (out_caps);
|
||||
|
||||
/* see if the subclass wants to alloc a buffer */
|
||||
if (bclass->prepare_output_buffer) {
|
||||
|
@ -873,7 +874,8 @@ gst_base_transform_prepare_output_buf (GstBaseTransform * trans,
|
|||
}
|
||||
|
||||
done:
|
||||
gst_caps_unref (out_caps);
|
||||
if (out_caps)
|
||||
gst_caps_unref (out_caps);
|
||||
trans->delay_configure = FALSE;
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue