Commit edebb4ed authored by Thibault Saunier's avatar Thibault Saunier

codecparsers: h264: Implement the nal_parser_free function

parent 949ba4e8
......@@ -1134,6 +1134,20 @@ gst_h264_nal_parser_new (void)
return nalparser;
}
/**
* gst_h264_nal_parser_free:
* @nalparser the #GstH264NalParser to free
*
* Frees @nalparser and sets it to %NULL
*/
void
gst_h264_nal_parser_free (GstH264NalParser * nalparser)
{
g_slice_free (GstH264NalParser, nalparser);
nalparser = NULL;
}
/**
* gst_h264_parser_identify_nalu:
* @nalparser: a #GstH264NalParser
......
......@@ -145,7 +145,7 @@ GST_START_TEST (test_h264_parse_slice_dpa)
assert_equals_int (res, GST_H264_PARSER_OK);
assert_equals_int (nalu.type, GST_H264_NAL_SLICE_DPA);
g_slice_free (GstH264NalParser, parser);
gst_h264_nal_parser_free (parser);
}
GST_END_TEST;
......
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