Functions | |
int | bgav_is_redirector (bgav_t *bgav) |
Query if the decoder opened a redirector. | |
int | bgav_redirector_get_num_urls (bgav_t *bgav) |
Get the number of URLs found in the redirector. | |
const char * | bgav_redirector_get_url (bgav_t *bgav, int index) |
Get the address of an URL. | |
const char * | bgav_redirector_get_name (bgav_t *bgav, int index) |
Get the address of an URL. |
After opening the decoder with bgav_open, you must check if the opened stream is actually a redirector with bgav_is_redirector. If this returns 1, get the number of urls with bgav_redirector_get_num_urls. Then, for each URL, get the address with bgav_redirector_get_url and the title of the URL with bgav_redirector_get_name. After you have this info, close and destroy the decoder with bgav_close and open a newly created decoder with one of the URLs you got.
int bgav_is_redirector | ( | bgav_t * | bgav | ) |
Query if the decoder opened a redirector.
bgav | A decoder instance |
int bgav_redirector_get_num_urls | ( | bgav_t * | bgav | ) |
Get the number of URLs found in the redirector.
bgav | A decoder instance |
const char* bgav_redirector_get_url | ( | bgav_t * | bgav, | |
int | index | |||
) |
Get the address of an URL.
bgav | A decoder instance | |
index | Index of the url (starting with 0) |
const char* bgav_redirector_get_name | ( | bgav_t * | bgav, | |
int | index | |||
) |
Get the address of an URL.
bgav | A decoder instance | |
index | Index of the url (starting with 0) |