decoder: h264: fix memory leak in PPS.

Cope with latest changes from codecparsers/h264. It is now required
to explicitly clear the GstH264PPS structure as it could contain
additional allocations (slice_group_ids).
This commit is contained in:
Gwenole Beauchesne 2014-07-01 17:18:08 +02:00
parent 4263effee5
commit cba9b97300

View file

@ -104,6 +104,9 @@ gst_vaapi_parser_info_h264_finalize(GstVaapiParserInfoH264 *pi)
case GST_H264_NAL_SUBSET_SPS:
gst_h264_sps_clear(&pi->data.sps);
break;
case GST_H264_NAL_PPS:
gst_h264_pps_clear(&pi->data.pps);
break;
case GST_H264_NAL_SEI:
if (pi->data.sei) {
g_array_unref(pi->data.sei);