avviddec: Remove unneeded check

frame is always valid in this function (but wasn't before the
refactoring from a few months ago).

CID #1439540
This commit is contained in:
Edward Hervey 2018-09-21 16:01:53 +02:00 committed by Edward Hervey
parent 143aa80cdf
commit 46cc79c43a

View file

@ -1800,14 +1800,12 @@ gst_ffmpegviddec_handle_frame (GstVideoDecoder * decoder,
if (!packet.size) if (!packet.size)
goto done; goto done;
if (frame) {
/* save reference to the timing info */ /* save reference to the timing info */
ffmpegdec->context->reordered_opaque = (gint64) frame->system_frame_number; ffmpegdec->context->reordered_opaque = (gint64) frame->system_frame_number;
ffmpegdec->picture->reordered_opaque = (gint64) frame->system_frame_number; ffmpegdec->picture->reordered_opaque = (gint64) frame->system_frame_number;
GST_DEBUG_OBJECT (ffmpegdec, "stored opaque values idx %d", GST_DEBUG_OBJECT (ffmpegdec, "stored opaque values idx %d",
frame->system_frame_number); frame->system_frame_number);
}
/* This might call into get_buffer() from another thread, /* This might call into get_buffer() from another thread,
* which would cause a deadlock. Release the lock here * which would cause a deadlock. Release the lock here