gst: Rename gst_toc_entry_type_to_string() to gst_toc_entry_type_get_nick()

It's more consistent.
This commit is contained in:
Sebastian Dröge 2012-05-15 16:38:30 +02:00
parent d167c321be
commit cacdea6ae6
5 changed files with 6 additions and 6 deletions

View file

@ -2702,7 +2702,7 @@ gst_toc_copy
gst_toc_find_entry
gst_toc_entry_get_start_stop
gst_toc_entry_set_start_stop
gst_toc_entry_type_to_string
gst_toc_entry_type_get_nick
<SUBSECTION Standard>
GST_TYPE_TOC_ENTRY_TYPE
<SUBSECTION Private>

View file

@ -978,7 +978,7 @@ gst_toc_entry_get_start_stop (const GstTocEntry * entry, gint64 * start,
}
/**
* gst_toc_entry_type_to_string:
* gst_toc_entry_type_get_nick:
* @type: a #GstTocEntryType.
*
* Converts @type to a string representation.
@ -987,7 +987,7 @@ gst_toc_entry_get_start_stop (const GstTocEntry * entry, gint64 * start,
* Since: 0.11.92
*/
const gchar *
gst_toc_entry_type_to_string (GstTocEntryType type)
gst_toc_entry_type_get_nick (GstTocEntryType type)
{
const gchar *entry_types[] = { "chapter", "edition" };

View file

@ -105,7 +105,7 @@ GstToc * gst_toc_copy (const GstToc *toc);
void gst_toc_entry_set_start_stop (GstTocEntry *entry, gint64 start, gint64 stop);
gboolean gst_toc_entry_get_start_stop (const GstTocEntry *entry, gint64 *start, gint64 *stop);
const gchar * gst_toc_entry_type_to_string (GstTocEntryType type);
const gchar * gst_toc_entry_type_get_nick (GstTocEntryType type);
G_END_DECLS

View file

@ -472,7 +472,7 @@ print_toc_entry (gpointer data, gpointer user_data)
gst_toc_entry_get_start_stop (entry, &start, &stop);
PRINT ("%s%s:", &spc[MAX_INDENT - indent],
gst_toc_entry_type_to_string (entry->type));
gst_toc_entry_type_get_nick (entry->type));
if (GST_CLOCK_TIME_IS_VALID (start)) {
PRINT (" start: %" GST_TIME_FORMAT, GST_TIME_ARGS (start));
}

View file

@ -1127,8 +1127,8 @@ EXPORTS
gst_toc_entry_new
gst_toc_entry_new_with_pad
gst_toc_entry_set_start_stop
gst_toc_entry_type_get_nick
gst_toc_entry_type_get_type
gst_toc_entry_type_to_string
gst_toc_find_entry
gst_toc_free
gst_toc_new