mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
assrender: If an ASS track was allocated already only feed new codec_data to it instead of recreating
This commit is contained in:
parent
b502383f18
commit
a009463d3f
1 changed files with 2 additions and 3 deletions
|
@ -440,10 +440,9 @@ gst_ass_render_setcaps_text (GstPad * pad, GstCaps * caps)
|
|||
codec_private = (gchar *) GST_BUFFER_DATA (priv);
|
||||
codec_private_size = GST_BUFFER_SIZE (priv);
|
||||
|
||||
if (render->ass_track)
|
||||
ass_free_track (render->ass_track);
|
||||
if (!render->ass_track)
|
||||
render->ass_track = ass_new_track (render->ass_library);
|
||||
|
||||
render->ass_track = ass_new_track (render->ass_library);
|
||||
ass_process_codec_private (render->ass_track,
|
||||
codec_private, codec_private_size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue