basevideoencoder: reset more state
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 24 Mar 2011 07:17:52 +0000 (08:17 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 16 May 2011 18:32:20 +0000 (20:32 +0200)
gst-libs/gst/video/gstbasevideoencoder.c

index f84c09dae9ae5c63a07dce175c2768263908e813..5bea52a6d22f7a3b1eeac441d01b3d608abd797a 100644 (file)
@@ -75,6 +75,14 @@ gst_base_video_encoder_class_init (GstBaseVideoEncoderClass * klass)
 static void
 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) {
     gst_event_unref (base_video_encoder->force_keyunit_event);
     base_video_encoder->force_keyunit_event = NULL;