diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-05-01 19:16:35 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-05-01 19:16:35 -0400 |
commit | 775e998dab25785380abac2b1cdf5e18a1ca30c9 (patch) | |
tree | 99b262d66082081fe575da1735631b93f60789a0 /ext/srtp | |
parent | 494b8e110d76f5c57d99d928eab3f478d9aa4a3f (diff) |
srtpdec: Only clear streams if they have been created
Diffstat (limited to 'ext/srtp')
-rw-r--r-- | ext/srtp/gstsrtpdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/srtp/gstsrtpdec.c b/ext/srtp/gstsrtpdec.c index 3fff82c1c..876879c29 100644 --- a/ext/srtp/gstsrtpdec.c +++ b/ext/srtp/gstsrtpdec.c @@ -1091,11 +1091,11 @@ gst_srtp_dec_change_state (GstElement * element, GstStateChange transition) break; case GST_STATE_CHANGE_PAUSED_TO_READY: gst_srtp_dec_clear_streams (filter); - break; - case GST_STATE_CHANGE_READY_TO_NULL: g_hash_table_unref (filter->streams); filter->streams = NULL; break; + case GST_STATE_CHANGE_READY_TO_NULL: + break; default: break; } |