ttmlparse: Remove redundant text_index field of TtmlElement
https://bugzilla.gnome.org/show_bug.cgi?id=781725
This commit is contained in:
parent
d8afce67c3
commit
8b19cccfc5
@ -89,7 +89,6 @@ struct _TtmlElement
|
|||||||
GstClockTime end;
|
GstClockTime end;
|
||||||
TtmlStyleSet *style_set;
|
TtmlStyleSet *style_set;
|
||||||
gchar *text;
|
gchar *text;
|
||||||
guint text_index;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Represents a static scene consisting of one or more trees of elements that
|
/* Represents a static scene consisting of one or more trees of elements that
|
||||||
@ -1411,7 +1410,6 @@ ttml_copy_element (const TtmlElement * element)
|
|||||||
ret->style_set = ttml_style_set_copy (element->style_set);
|
ret->style_set = ttml_style_set_copy (element->style_set);
|
||||||
if (element->text)
|
if (element->text)
|
||||||
ret->text = g_strdup (element->text);
|
ret->text = g_strdup (element->text);
|
||||||
ret->text_index = element->text_index;
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -1498,8 +1496,6 @@ ttml_add_element (GstSubtitleBlock * block, TtmlElement * element,
|
|||||||
element_style = gst_subtitle_style_set_new ();
|
element_style = gst_subtitle_style_set_new ();
|
||||||
ttml_update_style_set (element_style, element->style_set,
|
ttml_update_style_set (element_style, element->style_set,
|
||||||
cellres_x, cellres_y);
|
cellres_x, cellres_y);
|
||||||
GST_CAT_DEBUG (ttmlparse_debug, "Creating element with text index %u",
|
|
||||||
element->text_index);
|
|
||||||
|
|
||||||
if (element->type != TTML_ELEMENT_TYPE_BR)
|
if (element->type != TTML_ELEMENT_TYPE_BR)
|
||||||
buffer_index = ttml_add_text_to_buffer (buf, element->text);
|
buffer_index = ttml_add_text_to_buffer (buf, element->text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user