mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
codecparsers: h264: Implement the nal_parser_free function
This commit is contained in:
parent
949ba4e895
commit
edebb4ed92
2 changed files with 15 additions and 1 deletions
|
@ -1134,6 +1134,20 @@ gst_h264_nal_parser_new (void)
|
||||||
return nalparser;
|
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:
|
* gst_h264_parser_identify_nalu:
|
||||||
* @nalparser: a #GstH264NalParser
|
* @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 (res, GST_H264_PARSER_OK);
|
||||||
assert_equals_int (nalu.type, GST_H264_NAL_SLICE_DPA);
|
assert_equals_int (nalu.type, GST_H264_NAL_SLICE_DPA);
|
||||||
|
|
||||||
g_slice_free (GstH264NalParser, parser);
|
gst_h264_nal_parser_free (parser);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
Loading…
Reference in a new issue