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