libs/gst/base/gstbasetransform.c: Make basetransform reusable. (Closes #331898)

Original commit message from CVS:


* libs/gst/base/gstbasetransform.c:
(gst_base_transform_change_state): Make basetransform reusable.
(Closes #331898)
------------------------------------------------------
This commit is contained in:
Julien Moutte 2006-02-20 15:01:14 +00:00
parent a54323429c
commit 2c04844949
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-02-20 Julien MOUTTE <julien@moutte.net>
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_change_state): Make basetransform reusable.
(Closes #331898)
2006-02-20 Jan Schmidt <thaytan@mad.scientist.com>
* docs/random/release:

View file

@ -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: