Commit ae2dd54a authored by Sebastian Dröge's avatar Sebastian Dröge

vpxdec: libvpx's release buffer is sometimes called with fb->priv==NULL

Don't assert on this but just ignore these cases.
parent 5d4c71d7
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment