mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 13:53:19 +00:00
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:
parent
143aa80cdf
commit
46cc79c43a
1 changed files with 5 additions and 7 deletions
|
@ -1800,14 +1800,12 @@ gst_ffmpegviddec_handle_frame (GstVideoDecoder * decoder,
|
|||
if (!packet.size)
|
||||
goto done;
|
||||
|
||||
if (frame) {
|
||||
/* save reference to the timing info */
|
||||
ffmpegdec->context->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",
|
||||
frame->system_frame_number);
|
||||
}
|
||||
|
||||
/* This might call into get_buffer() from another thread,
|
||||
* which would cause a deadlock. Release the lock here
|
||||
|
|
Loading…
Reference in a new issue