{
int ret = 0;
- if (!stream_class) {
+ if (!stream_class || stream_class->frozen) {
ret = -1;
goto end;
}
{
int ret = 0;
- if (!stream_class || !packet_context_type) {
+ if (!stream_class || !packet_context_type || stream_class->frozen) {
ret = -1;
goto end;
}