mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
vpxdec: libvpx's release buffer is sometimes called with fb->priv==NULL
Don't assert on this but just ignore these cases.
This commit is contained in:
parent
5d4c71d76e
commit
ae2dd54a24
1 changed files with 4 additions and 1 deletions
|
@ -482,9 +482,12 @@ gst_vpx_dec_release_buffer_cb (gpointer priv, vpx_codec_frame_buffer_t * fb)
|
|||
{
|
||||
struct Frame *frame = fb->priv;
|
||||
|
||||
/* We're sometimes called without a frame */
|
||||
if (!frame)
|
||||
return 0;
|
||||
|
||||
GST_TRACE_OBJECT (priv, "Release buffer %p", frame->buffer);
|
||||
|
||||
g_assert (frame);
|
||||
gst_buffer_unmap (frame->buffer, &frame->info);
|
||||
gst_buffer_unref (frame->buffer);
|
||||
g_free (frame);
|
||||
|
|
Loading…
Reference in a new issue