Commit 7fa16911 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Code cosmetics and warnings

parent 89054d79
......@@ -392,7 +392,7 @@ jobjectArray Java_org_videolan_vlc_LibVLC_readMediaMeta(JNIEnv *env,
if (!m)
{
LOGE("readMediaMeta: Couldn't create the media!");
return;
return array;
}
libvlc_media_parse(m);
......@@ -406,8 +406,7 @@ jobjectArray Java_org_videolan_vlc_LibVLC_readMediaMeta(JNIEnv *env,
libvlc_meta_Title,
libvlc_meta_Genre,
};
int i;
for (i=0; i < sizeof(str) / sizeof(*str); i++) {
for (int i=0; i < sizeof(str) / sizeof(*str); i++) {
char *meta = libvlc_media_get_meta(m, meta_id[i]);
if (!meta)
meta = strdup("");
......
......@@ -92,8 +92,7 @@ static void thumbnailer_unlock(void *opaque, void *picture, void *const *pixels)
const char *dataSrc = sys->frameData;
char *dataDest = sys->thumbnail + sys->thumbnailOffset;
/* Copy the thumbnail. */
unsigned i;
for (i = 0; i < sys->nbLines; ++i)
for (unsigned i = 0; i < sys->nbLines; ++i)
{
memcpy(dataDest, dataSrc, sys->picPitch);
dataDest += sys->lineSize;
......@@ -152,9 +151,9 @@ jbyteArray Java_org_videolan_vlc_LibVLC_getThumbnail(JNIEnv *env, jobject thiz,
libvlc_media_parse(m);
int nbTracks = libvlc_media_get_tracks_info(m, &tracks);
unsigned i, videoWidth, videoHeight;
unsigned videoWidth, videoHeight;
bool hasVideoTrack = false;
for (i = 0; i < nbTracks; ++i)
for (unsigned i = 0; i < nbTracks; ++i)
if (tracks[i].i_type == libvlc_track_video)
{
videoWidth = tracks[i].u.video.i_width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment