diff options
author | Wind Yuan <feng.yuan@intel.com> | 2014-01-17 16:56:53 +0800 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-01-22 18:30:26 +0100 |
commit | 0e8afe1c22d6fe942c3ed452761bae445af3da9c (patch) | |
tree | 0461fc8c2538ad9be1aa800c2c70386c6eee4259 /gst-libs/gst/vaapi/gstvaapidecoder.c | |
parent | deff9c775c477ff80112ae11d080dea9a7f43c9d (diff) | |
download | gst-vaapi-0e8afe1c22d6fe942c3ed452761bae445af3da9c.tar.gz |
decoder: fix crash on invalid pointer for GST_DEBUG().
When decoding failed, or that the frame was dropped, the associated
surface proxy is not guaranteed to be present. Thus, the GST_DEBUG()
message needs to check whether the proxy is actually present or not.
https://bugzilla.gnome.org/show_bug.cgi?id=722403
[fixed gst_vaapi_surface_proxy_get_surface_id() to return VA_INVALID_ID]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder.c')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.c b/gst-libs/gst/vaapi/gstvaapidecoder.c index 8a8fa4ce..8b05f7b8 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder.c @@ -394,7 +394,7 @@ pop_frame(GstVaapiDecoder *decoder, guint64 timeout) proxy = frame->user_data; GST_DEBUG("dequeue decoded surface %" GST_VAAPI_ID_FORMAT, - GST_VAAPI_ID_ARGS(GST_VAAPI_SURFACE_PROXY_SURFACE_ID(proxy))); + GST_VAAPI_ID_ARGS(gst_vaapi_surface_proxy_get_surface_id(proxy))); return frame; } |