[vlc-commits] commit: Fix libvlc_media_get_tracks_info() (Laurent Aimar )
git at videolan.org
git at videolan.org
Thu Dec 2 22:19:05 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Dec 2 22:16:37 2010 +0100| [4bf6ddb1c54a3bc614a81e126508c2ac85cddfa5] | committer: Rafaël Carré
Fix libvlc_media_get_tracks_info()
Signed-off-by: Rafaël Carré <rafael.carre at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bf6ddb1c54a3bc614a81e126508c2ac85cddfa5
---
src/input/es_out.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 788f338..15b0d55 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2856,7 +2856,14 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
const es_format_t *p_fmt_es = &es->fmt;
lldiv_t div;
- input_item_UpdateTracksInfo(input_GetItem(p_input), fmt);
+ if( es->fmt.i_cat == fmt->i_cat )
+ {
+ es_format_t update = *fmt;
+ update.i_id = es->i_meta_id;
+ update.i_codec = es->fmt.i_codec;
+ update.i_original_fourcc = es->fmt.i_original_fourcc;
+ input_item_UpdateTracksInfo(input_GetItem(p_input), &update);
+ }
/* Create category */
char psz_cat[128];
More information about the vlc-commits
mailing list