projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d4c71d
)
vpxdec: libvpx's release buffer is sometimes called with fb->priv==NULL
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 22 Nov 2016 18:33:29 +0000
(20:33 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 22 Nov 2016 18:33:29 +0000
(20:33 +0200)
Don't assert on this but just ignore these cases.
ext/vpx/gstvpxdec.c
patch
|
blob
|
history
diff --git
a/ext/vpx/gstvpxdec.c
b/ext/vpx/gstvpxdec.c
index
42619c5
..
2501c4a
100644
(file)
--- 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);