[MOVED FROM BAD 038/134] vp8enc: Correctly ignore non-frame packets from the encoder

Fixes bug #619916.
This commit is contained in:
Sebastian Dröge 2010-05-28 15:53:30 +02:00
parent 951b3a1594
commit e0aa93f455

View file

@ -565,7 +565,8 @@ gst_vp8_enc_finish (GstBaseVideoEncoder * base_video_encoder)
pkt->kind);
if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) {
GST_ERROR_OBJECT (encoder, "non frame pkt");
pkt = vpx_codec_get_cx_data (&encoder->encoder, &iter);
GST_LOG_OBJECT (encoder, "non frame pkt: %d", pkt->kind);
continue;
}
@ -744,7 +745,8 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
pkt->kind);
if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) {
GST_ERROR_OBJECT (encoder, "non frame pkt");
pkt = vpx_codec_get_cx_data (&encoder->encoder, &iter);
GST_LOG_OBJECT (encoder, "non frame pkt: %d", pkt->kind);
continue;
}