[MOVED FROM BAD 003/134] vp8enc: Fill the oldest pending frame instead of the newest

This commit is contained in:
Sebastian Dröge 2010-05-13 21:08:03 +02:00
parent 5f7655d481
commit 522e0cb779

View file

@ -547,6 +547,7 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
GST_ERROR ("encode returned %d %s", status, vpx_error_name (status));
}
frame = gst_base_video_encoder_get_oldest_frame (base_video_encoder);
pkt = vpx_codec_get_cx_data (&encoder->encoder, &iter);
if (pkt != NULL) {
GST_DEBUG ("packet %d type %d", pkt->data.frame.sz, pkt->kind);