audioencoder: fix segment event leak
Segment event was leaked if format != _TIME.
This commit is contained in:
parent
6b283d9e78
commit
af909c6d82
@ -1551,6 +1551,7 @@ gst_audio_encoder_sink_event_default (GstAudioEncoder * enc, GstEvent * event)
|
|||||||
GST_DEBUG_OBJECT (enc, "received SEGMENT %" GST_SEGMENT_FORMAT, &seg);
|
GST_DEBUG_OBJECT (enc, "received SEGMENT %" GST_SEGMENT_FORMAT, &seg);
|
||||||
GST_DEBUG_OBJECT (enc, "unsupported format; ignoring");
|
GST_DEBUG_OBJECT (enc, "unsupported format; ignoring");
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
gst_event_unref (event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user