mpeg-ts: Rename private function

Calling it _desc_checks when it was in fact used for sections was a
tad confusing ...
This commit is contained in:
Edward Hervey 2014-02-20 18:14:51 +01:00
parent beb31d127b
commit 4190a1717a
3 changed files with 14 additions and 14 deletions

View file

@ -246,7 +246,7 @@ gst_mpegts_section_get_eit (GstMpegTsSection * section)
g_return_val_if_fail (section->cached_parsed || section->data, NULL);
if (!section->cached_parsed)
section->cached_parsed = __common_desc_checks (section, 18, _parse_eit,
section->cached_parsed = __common_section_checks (section, 18, _parse_eit,
(GDestroyNotify) _gst_mpegts_eit_free);
return (const GstMpegTsEIT *) section->cached_parsed;
@ -420,7 +420,7 @@ gst_mpegts_section_get_bat (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 16, _parse_bat,
__common_section_checks (section, 16, _parse_bat,
(GDestroyNotify) _gst_mpegts_bat_free);
return (const GstMpegTsBAT *) section->cached_parsed;
@ -599,7 +599,7 @@ gst_mpegts_section_get_nit (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 16, _parse_nit,
__common_section_checks (section, 16, _parse_nit,
(GDestroyNotify) _gst_mpegts_nit_free);
return (const GstMpegTsNIT *) section->cached_parsed;
@ -924,7 +924,7 @@ gst_mpegts_section_get_sdt (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 15, _parse_sdt,
__common_section_checks (section, 15, _parse_sdt,
(GDestroyNotify) _gst_mpegts_sdt_free);
return (const GstMpegTsSDT *) section->cached_parsed;
@ -954,7 +954,7 @@ gst_mpegts_section_get_tdt (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 8, _parse_tdt,
__common_section_checks (section, 8, _parse_tdt,
(GDestroyNotify) gst_date_time_unref);
if (section->cached_parsed)
@ -1028,7 +1028,7 @@ gst_mpegts_section_get_tot (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 14, _parse_tot,
__common_section_checks (section, 14, _parse_tot,
(GDestroyNotify) _gst_mpegts_tot_free);
return (const GstMpegTsTOT *) section->cached_parsed;

View file

@ -43,10 +43,10 @@ G_GNUC_INTERNAL GstMpegTsSection *_gst_mpegts_section_init (guint16 pid, guint8
G_GNUC_INTERNAL void _packetize_common_section (GstMpegTsSection * section, gsize length);
typedef gpointer (*GstMpegTsParseFunc) (GstMpegTsSection *section);
G_GNUC_INTERNAL gpointer __common_desc_checks (GstMpegTsSection *section,
guint minsize,
GstMpegTsParseFunc parsefunc,
GDestroyNotify destroynotify);
G_GNUC_INTERNAL gpointer __common_section_checks (GstMpegTsSection *section,
guint minsize,
GstMpegTsParseFunc parsefunc,
GDestroyNotify destroynotify);
G_END_DECLS

View file

@ -150,7 +150,7 @@ _calc_crc32 (const guint8 * data, guint datalen)
}
gpointer
__common_desc_checks (GstMpegTsSection * section, guint min_size,
__common_section_checks (GstMpegTsSection * section, guint min_size,
GstMpegTsParseFunc parsefunc, GDestroyNotify destroynotify)
{
gpointer res;
@ -474,7 +474,7 @@ gst_mpegts_section_get_pat (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 12, _parse_pat,
__common_section_checks (section, 12, _parse_pat,
(GDestroyNotify) g_ptr_array_unref);
if (section->cached_parsed)
@ -736,7 +736,7 @@ gst_mpegts_section_get_pmt (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 16, _parse_pmt,
__common_section_checks (section, 16, _parse_pmt,
(GDestroyNotify) _gst_mpegts_pmt_free);
return (const GstMpegTsPMT *) section->cached_parsed;
@ -938,7 +938,7 @@ gst_mpegts_section_get_cat (GstMpegTsSection * section)
if (!section->cached_parsed)
section->cached_parsed =
__common_desc_checks (section, 12, _parse_cat,
__common_section_checks (section, 12, _parse_cat,
(GDestroyNotify) g_ptr_array_unref);
if (section->cached_parsed)