diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-11-22 20:33:29 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-22 20:33:29 +0200 |
commit | ae2dd54a240a7b38710cdf118594712feaa5828c (patch) | |
tree | 2155b44d35aaa6e0e95e1c030bf5bbc66bf8cc44 /ext/vpx | |
parent | 5d4c71d76e553d40f22e25bf7bad81b77ceb7ac5 (diff) |
vpxdec: libvpx's release buffer is sometimes called with fb->priv==NULL
Don't assert on this but just ignore these cases.
Diffstat (limited to 'ext/vpx')
-rw-r--r-- | ext/vpx/gstvpxdec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/vpx/gstvpxdec.c b/ext/vpx/gstvpxdec.c index 42619c541..2501c4ab7 100644 --- a/ext/vpx/gstvpxdec.c +++ b/ext/vpx/gstvpxdec.c @@ -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); |