mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
srtpdec: Only clear streams if they have been created
This commit is contained in:
parent
494b8e110d
commit
775e998dab
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue