[Android] [PATCH 1/5] Added bitrate information to TrackInfo class.

Jean-Baptiste Kempf jb at videolan.org
Fri Jul 25 23:40:32 CEST 2014


Applied.

Le 24/07/2014 19:14, Paulo Vitor Magacho da Silva a écrit :
> ---
>   vlc-android/jni/libvlcjni-track.c                  | 1 +
>   vlc-android/src/org/videolan/libvlc/TrackInfo.java | 1 +
>   2 files changed, 2 insertions(+)
>
> diff --git a/vlc-android/jni/libvlcjni-track.c b/vlc-android/jni/libvlcjni-track.c
> index df558ea..14a142e 100644
> --- a/vlc-android/jni/libvlcjni-track.c
> +++ b/vlc-android/jni/libvlcjni-track.c
> @@ -161,6 +161,7 @@ jobjectArray read_track_info_internal(JNIEnv *env, jobject thiz, libvlc_media_t*
>               setInt(env, item, "Type", p_tracks[i]->i_type);
>               setString(env, item, "Codec", (const char*)vlc_fourcc_GetDescription(0,p_tracks[i]->i_codec));
>               setString(env, item, "Language", p_tracks[i]->psz_language);
> +            setInt(env, item, "Bitrate", p_tracks[i]->i_bitrate);
>
>               if (p_tracks[i]->i_type == libvlc_track_video)
>               {
> diff --git a/vlc-android/src/org/videolan/libvlc/TrackInfo.java b/vlc-android/src/org/videolan/libvlc/TrackInfo.java
> index 7cf23f0..b55dc55 100644
> --- a/vlc-android/src/org/videolan/libvlc/TrackInfo.java
> +++ b/vlc-android/src/org/videolan/libvlc/TrackInfo.java
> @@ -32,6 +32,7 @@ public class TrackInfo {
>       public int Id;
>       public String Codec;
>       public String Language;
> +    public int Bitrate;
>
>       /* Video */
>       public int Height;
>


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the Android mailing list