mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +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;
|
break;
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
gst_srtp_dec_clear_streams (filter);
|
gst_srtp_dec_clear_streams (filter);
|
||||||
break;
|
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
|
||||||
g_hash_table_unref (filter->streams);
|
g_hash_table_unref (filter->streams);
|
||||||
filter->streams = NULL;
|
filter->streams = NULL;
|
||||||
break;
|
break;
|
||||||
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue