From e0aa93f455feeb6dda8165db8d3b4fc3bfbb51b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 28 May 2010 15:53:30 +0200 Subject: [PATCH] [MOVED FROM BAD 038/134] vp8enc: Correctly ignore non-frame packets from the encoder Fixes bug #619916. --- ext/vp8/gstvp8enc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c index 7e8e705f33..8c5fc8396a 100644 --- a/ext/vp8/gstvp8enc.c +++ b/ext/vp8/gstvp8enc.c @@ -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; }