codecparsers: h264: Implement the nal_parser_free function

This commit is contained in:
Thibault Saunier 2011-09-09 14:15:21 -03:00
parent 949ba4e895
commit edebb4ed92
2 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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;