Stop on decoder frame push error
On push, frame sinks report downstream errors to stop upstream components. Do not ignore the error.
This commit is contained in:
parent
df55bc2683
commit
02dd1be4a1
1 changed files with 4 additions and 4 deletions
|
@ -99,11 +99,11 @@ sc_decoder_push(struct sc_decoder *decoder, const AVPacket *packet) {
|
||||||
// a frame was received
|
// a frame was received
|
||||||
bool ok = sc_frame_source_sinks_push(&decoder->frame_source,
|
bool ok = sc_frame_source_sinks_push(&decoder->frame_source,
|
||||||
decoder->frame);
|
decoder->frame);
|
||||||
// A frame lost should not make the whole pipeline fail. The error, if
|
|
||||||
// any, is already logged.
|
|
||||||
(void) ok;
|
|
||||||
|
|
||||||
av_frame_unref(decoder->frame);
|
av_frame_unref(decoder->frame);
|
||||||
|
if (!ok) {
|
||||||
|
// Error already logged
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue