mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
basevideoencoder: reset more state
This commit is contained in:
parent
02a065e406
commit
3f0824b699
1 changed files with 8 additions and 0 deletions
|
@ -75,6 +75,14 @@ gst_base_video_encoder_class_init (GstBaseVideoEncoderClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_base_video_encoder_reset (GstBaseVideoEncoder * base_video_encoder)
|
gst_base_video_encoder_reset (GstBaseVideoEncoder * base_video_encoder)
|
||||||
{
|
{
|
||||||
|
base_video_encoder->presentation_frame_number = 0;
|
||||||
|
base_video_encoder->distance_from_sync = 0;
|
||||||
|
base_video_encoder->force_keyframe = FALSE;
|
||||||
|
|
||||||
|
base_video_encoder->set_output_caps = FALSE;
|
||||||
|
base_video_encoder->min_latency = 0;
|
||||||
|
base_video_encoder->max_latency = 0;
|
||||||
|
|
||||||
if (base_video_encoder->force_keyunit_event) {
|
if (base_video_encoder->force_keyunit_event) {
|
||||||
gst_event_unref (base_video_encoder->force_keyunit_event);
|
gst_event_unref (base_video_encoder->force_keyunit_event);
|
||||||
base_video_encoder->force_keyunit_event = NULL;
|
base_video_encoder->force_keyunit_event = NULL;
|
||||||
|
|
Loading…
Reference in a new issue