[vlc-commits] input: don't update codec specific data
Thomas Guillem
git at videolan.org
Thu Jan 19 15:06:30 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 19 15:04:52 2017 +0100| [aa8051f4b31cc65a0cba45cf633f2f2909517137] | committer: Thomas Guillem
input: don't update codec specific data
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa8051f4b31cc65a0cba45cf633f2f2909517137
---
src/input/es_out.c | 5 +++++
src/input/item.c | 2 --
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index d7d3e16..40e6659 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2943,6 +2943,11 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
update.i_extra_languages = es->fmt.i_extra_languages;
update.p_extra_languages = es->fmt.p_extra_languages;
}
+
+ /* No need to update codec specific data */
+ update.i_extra = 0;
+ update.p_extra = NULL;
+
input_item_UpdateTracksInfo(input_GetItem(p_input), &update);
}
diff --git a/src/input/item.c b/src/input/item.c
index 31d3b4f..8cf9336 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -1346,8 +1346,6 @@ void input_item_UpdateTracksInfo(input_item_t *item, const es_format_t *fmt)
return;
es_format_Copy(fmt_copy, fmt);
- /* XXX: we could free p_extra to save memory, we will likely not need
- * the decoder specific data */
vlc_mutex_lock( &item->lock );
More information about the vlc-commits
mailing list