checking into this more, I made a little test app that only does
bgav_open and bgav_close on media (that exist and that do not).
please see attached.
when I check them with valgrind, the 4 files I check all seem to cause
leaks.
Is that normal?
Am I missing something or doing something wrong?
-august.
#include <gmerlin/avdec.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int load_file(char * filename) {
bgav_t * file = NULL;
bgav_options_t * opt = NULL;
int num_tracks=0;
int track=0;
int num_video_streams =0;
int num_audio_streams =0;
static int connect_timeout = 5000;
static int read_timeout = 5000;
static int network_bandwidth = 524300; /* 524.3 Kbps (Cable/DSL) */
file = bgav_create();
opt = bgav_get_options(file);
bgav_options_set_connect_timeout(opt, connect_timeout);
bgav_options_set_read_timeout(opt, read_timeout);
bgav_options_set_network_bandwidth(opt, network_bandwidth);
if(!bgav_open(file, filename )) {
fprintf(stderr, "Could not open file %s\n", filename);
bgav_close(file);
file = NULL;
} else {
/*
if(!bgav_start(file)) {
fprintf(stderr, "failed\n");
bgav_close(file);
return -1;
}
*/
fprintf(stderr, "Opened file %s\n", filename);
bgav_close(file);
file = NULL;
}
return -1;
}
int main(int argc, char ** argv) {
// This http file has no audio video and many redirectors
//load_file( (char *)"http://google.com");
// This http file exists, has audio, but causes leaks
//load_file( (char *)"http://wnycam.streamguys.com");
// this "broken link" does not cause any leaks
//load_file( (char *)"broken link");
// This is a file that exists on my HDD, also causes leaks
load_file( (char *)"/home/august/Videos/igloolik/kodak/110_0031.MOV");
}
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general