diff --git a/ChangeLog b/ChangeLog index f68b5511a1..4c01e82bd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-02-20 Julien MOUTTE + + * libs/gst/base/gstbasetransform.c: + (gst_base_transform_change_state): Make basetransform reusable. + (Closes #331898) + 2006-02-20 Jan Schmidt * docs/random/release: diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index f944721003..2a2998daf7 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -1413,6 +1413,12 @@ gst_base_transform_change_state (GstElement * element, case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; case GST_STATE_CHANGE_PAUSED_TO_READY: + trans->have_same_caps = FALSE; + /* We can only reset the passthrough mode if the instance told us to + handle it in configure_caps */ + if (trans->passthrough_on_same_caps) { + gst_base_transform_set_passthrough (trans, FALSE); + } gst_caps_replace (&trans->cache_caps1, NULL); gst_caps_replace (&trans->cache_caps2, NULL); default: