[MOVED FROM BAD 003/134] vp8enc: Fill the oldest pending frame instead of the newest
This commit is contained in:
parent
5f7655d481
commit
522e0cb779
@ -547,6 +547,7 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
|
|||||||
GST_ERROR ("encode returned %d %s", status, vpx_error_name (status));
|
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);
|
pkt = vpx_codec_get_cx_data (&encoder->encoder, &iter);
|
||||||
if (pkt != NULL) {
|
if (pkt != NULL) {
|
||||||
GST_DEBUG ("packet %d type %d", pkt->data.frame.sz, pkt->kind);
|
GST_DEBUG ("packet %d type %d", pkt->data.frame.sz, pkt->kind);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user