applemedia: vtdec: fix setting internal SKIP / DROP flags

This commit is contained in:
Alessandro Decina 2015-11-17 15:18:28 +11:00
parent 15251e4824
commit 35052fdfd0

View file

@ -776,10 +776,10 @@ gst_vtdec_session_output_callback (void *decompression_output_ref_con,
if (info_flags & kVTDecodeInfo_FrameDropped) { if (info_flags & kVTDecodeInfo_FrameDropped) {
GST_DEBUG_OBJECT (vtdec, "Frame dropped by video toolbox %p %d", GST_DEBUG_OBJECT (vtdec, "Frame dropped by video toolbox %p %d",
frame, frame->decode_frame_number); frame, frame->decode_frame_number);
frame->flags &= VTDEC_FRAME_FLAG_DROP; frame->flags |= VTDEC_FRAME_FLAG_DROP;
} else { } else {
GST_DEBUG_OBJECT (vtdec, "Decoded frame is NULL"); GST_DEBUG_OBJECT (vtdec, "Decoded frame is NULL");
frame->flags &= VTDEC_FRAME_FLAG_SKIP; frame->flags |= VTDEC_FRAME_FLAG_SKIP;
} }
} }