mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +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)
|
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
|
||||||
|
|
Loading…
Reference in a new issue