basevideo: Don't duplicate code in basevideocodec

Both basevideoencoder and basevideocodec were setting
system_frame_number, leading to confusion.  Fixes #647853.
This commit is contained in:
David Schleef 2011-04-24 15:49:54 -07:00
parent aa02a4074f
commit 4f432e09fa

View file

@ -461,10 +461,6 @@ gst_base_video_encoder_finish_frame (GstBaseVideoEncoder * base_video_encoder,
base_video_encoder_class =
GST_BASE_VIDEO_ENCODER_GET_CLASS (base_video_encoder);
frame->system_frame_number =
GST_BASE_VIDEO_CODEC (base_video_encoder)->system_frame_number;
GST_BASE_VIDEO_CODEC (base_video_encoder)->system_frame_number++;
if (frame->is_sync_point) {
base_video_encoder->distance_from_sync = 0;
GST_BUFFER_FLAG_UNSET (frame->src_buffer, GST_BUFFER_FLAG_DELTA_UNIT);