mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
vtdec: ignore the dropped flag if buffer was received
Apparently there is some issue with VT that makes it mark the dropped flag even though the buffer was decoded. https://bugzilla.gnome.org/show_bug.cgi?id=728435
This commit is contained in:
parent
25974ac0a9
commit
f75f860ff3
1 changed files with 8 additions and 3 deletions
|
@ -512,16 +512,21 @@ gst_vtdec_session_output_callback (void *decompression_output_ref_con,
|
|||
GstBuffer *buf;
|
||||
GstVideoCodecState *state;
|
||||
|
||||
GST_LOG_OBJECT (vtdec, "got output frame %p %d", frame,
|
||||
frame->decode_frame_number);
|
||||
GST_LOG_OBJECT (vtdec, "got output frame %p %d and VT buffer %p", frame,
|
||||
frame->decode_frame_number, image_buffer);
|
||||
|
||||
if (status != noErr) {
|
||||
GST_ERROR_OBJECT (vtdec, "Error decoding frame %d", status);
|
||||
goto drop;
|
||||
}
|
||||
|
||||
if (info_flags & kVTDecodeInfo_FrameDropped)
|
||||
if (image_buffer == NULL) {
|
||||
if (info_flags & kVTDecodeInfo_FrameDropped)
|
||||
GST_DEBUG_OBJECT (vtdec, "Frame dropped by video toolbox");
|
||||
else
|
||||
GST_DEBUG_OBJECT (vtdec, "Decoded frame is NULL");
|
||||
goto drop;
|
||||
}
|
||||
|
||||
/* FIXME: use gst_video_decoder_allocate_output_buffer */
|
||||
state = gst_video_decoder_get_output_state (GST_VIDEO_DECODER (vtdec));
|
||||
|
|
Loading…
Reference in a new issue