Commit 90571c09 authored by François Grisez's avatar François Grisez

Make the VideoToolbox decoder sends the MS_DECODER_DECODING_ERRORS...

Make the VideoToolbox decoder sends the MS_DECODER_DECODING_ERRORS notification when it fails to decode a frame
parent 68d9438e
......@@ -495,7 +495,13 @@ static void h264_dec_output_cb(VTH264DecCtx *ctx, void *sourceFrameRefCon,
if(status != noErr || imageBuffer == NULL) {
ms_error("VideoToolboxDecoder: fail to decode one frame: error %d", status);
ms_filter_notify_no_arg(ctx->f, MS_VIDEO_DECODER_SEND_PLI);
ms_filter_notify_no_arg(ctx->f, MS_VIDEO_DECODER_DECODING_ERRORS);
if(ctx->enable_avpf) {
ms_error("VideoToolboxDecoder: sending PLI");
ms_filter_notify_no_arg(ctx->f, MS_VIDEO_DECODER_SEND_PLI);
......@@ -678,6 +684,7 @@ static void h264_dec_process(MSFilter *f) {
goto put_frames_out;
ms_filter_notify_no_arg(f, MS_VIDEO_DECODER_DECODING_ERRORS);
if(ctx->enable_avpf) {
ms_message("VideoToolboxDecoder: sending PLI");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment