summaryrefslogtreecommitdiff
path: root/ext/srtp
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-05-01 19:16:35 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-05-01 19:16:35 -0400
commit775e998dab25785380abac2b1cdf5e18a1ca30c9 (patch)
tree99b262d66082081fe575da1735631b93f60789a0 /ext/srtp
parent494b8e110d76f5c57d99d928eab3f478d9aa4a3f (diff)
srtpdec: Only clear streams if they have been created
Diffstat (limited to 'ext/srtp')
-rw-r--r--ext/srtp/gstsrtpdec.c4
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;
}