diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-09-12 20:57:09 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-09-12 20:57:09 +0000 |
commit | 876f5f22a962f05b76fb1a211ec8a976cd552f3e (patch) | |
tree | 64000bb82bbda8b8a105b50cb294c2ba87043948 /ext/hermes/gstcolorspace.c | |
parent | d368d1ad76a9c66031371c6aba0d89138df4063e (diff) | |
download | gst-plugins-bad-876f5f22a962f05b76fb1a211ec8a976cd552f3e.tar.gz gst-plugins-bad-876f5f22a962f05b76fb1a211ec8a976cd552f3e.tar.bz2 gst-plugins-bad-876f5f22a962f05b76fb1a211ec8a976cd552f3e.zip |
Destroy state when going to READY
Original commit message from CVS:
Destroy state when going to READY
Diffstat (limited to 'ext/hermes/gstcolorspace.c')
-rw-r--r-- | ext/hermes/gstcolorspace.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/hermes/gstcolorspace.c b/ext/hermes/gstcolorspace.c index fe21fc56..84c124b6 100644 --- a/ext/hermes/gstcolorspace.c +++ b/ext/hermes/gstcolorspace.c @@ -541,6 +541,13 @@ gst_colorspace_change_state (GstElement *element) case GST_STATE_PLAYING_TO_PAUSED: space->pool = NULL; break; + case GST_STATE_PAUSED_TO_READY: + gst_colorspace_converter_destroy (space->converter); + space->converter = NULL; + space->disabled = TRUE; + space->type = GST_COLORSPACE_NONE; + space->sinkcaps = NULL; + break; } parent_class->change_state (element); @@ -612,10 +619,3 @@ GstPluginDesc plugin_desc = { plugin_init }; - - - - - - - |