The libvlc_media_discoverer API seems not working since the 1.0 version.
I don't receive events anymore from the discoverer event manager libvlc_media_discoverer_event_manager
Here is my code:
Code: Select all
p_mdis = libvlc_media_discoverer_new_from_name (inst, "Shoutcast", &ex);
if (p_mdis != NULL) {
libvlc_event_manager_t *p_event_manager = libvlc_media_discoverer_event_manager(p_mdis);
libvlc_event_attach (p_event_manager,
libvlc_MediaDiscovererEnded,
discoverer_callback,
"Shoutcast",
&ex
);
}
What did changed in the 1.0 lib ?
Everything seems to be good in the logs:
0x3afbc8] main input debug: `http/shout-winamp://www.shoutcast.com/sbin/newxml.phtml' gives access `http' demux `shout-winamp' path `www.shoutcast.com/sbin/newxml.phtml'
[0x3afbc8] main input debug: creating demux: access='http' demux='shout-winamp' path='www.shoutcast.com/sbin/newxml.phtml'
[0x3b0b18] main demux debug: looking for access_demux module: 0 candidates
[0x3b0b18] main demux debug: no access_demux module matched "http"
[0x3b0b18] main demux debug: TIMER module_need() : 0.156 ms - Total 0.156 ms / 1 intvls (Avg 0.156 ms)
[0x3afbc8] main input debug: creating access 'http' path='www.shoutcast.com/sbin/newxml.phtml'
[0x3b0ab8] main access debug: looking for access module: 2 candidates
[0x3b0ab8] access_http access debug: http: server='www.shoutcast.com' port=80 file='/sbin/newxml.phtml
[0x3b0ab8] main access debug: net: connecting to http://www.shoutcast.com port 80
[0x3b0ab8] main access debug: connection: Operation now in progress
[0x3b0ab8] main access debug: connection succeeded (socket = 9)
[0x3b0ab8] access_http access debug: protocol 'HTTP' answer code 200
[0x3b0ab8] access_http access debug: Server: Apache
[0x3b0ab8] access_http access debug: Content-Type: text/xml;charset=UTF-8
[0x3b0ab8] access_http access debug: Transfer-Encoding: chunked
[0x3b0ab8] main access debug: using access module "access_http"
[0x3b0ab8] main access debug: TIMER module_need() : 528.647 ms - Total 528.647 ms / 1 intvls (Avg 528.647 ms)
[0x3b0ff8] main stream debug: Using AStream*Stream
[0x3b0ff8] main stream debug: pre buffering
[0x3b0ff8] main stream debug: received first data after 0 ms
[0x3b0ff8] main stream debug: pre-buffering done 1024 bytes in 0s - 6289 kbytes/s
[0x3b1228] main stream debug: looking for stream_filter module: 4 candidates
[0x3b1228] main stream debug: TIMER module_need() : 0.161 ms - Total 0.161 ms / 1 intvls (Avg 0.161 ms)
[0x3b1228] main stream debug: looking for stream_filter module: 1 candidate
[0x3b1228] main stream debug: using stream_filter module "stream_filter_record"
[0x3b1228] main stream debug: TIMER module_need() : 0.229 ms - Total 0.229 ms / 1 intvls (Avg 0.229 ms)
[0x3afbc8] main input debug: creating demux: access='http' demux='shout-winamp' path='www.shoutcast.com/sbin/newxml.phtml'
[0x3b1528] main demux debug: looking for demux module: 1 candidate
[0x3b1528] playlist demux debug: using shoutcast playlist reader
[0x3b1528] main demux debug: using demux module "playlist"
[0x3b1528] main demux debug: TIMER module_need() : 0.495 ms - Total 0.495 ms / 1 intvls (Avg 0.495 ms)
[0x3afbc8] main input debug: `http/shout-winamp://www.shoutcast.com/sbin/newxml.phtml' successfully opened
[0x3b1738] main xml debug: looking for xml module: 2 candidates
[0x3b1738] main xml debug: using xml module "xml"
[0x3b1738] main xml debug: TIMER module_need() : 0.119 ms - Total 0.119 ms / 1 intvls (Avg 0.119 ms)
[0x3afbc8] main input debug: EOF reached
[0x3b1738] main xml debug: removing module "xml"
[0x3b1528] main demux debug: removing module "playlist"
[0x3b1228] main stream debug: removing module "stream_filter_record"
[0x3b0ab8] main access debug: removing module "access_http"
[0x3b0ab8] main access debug: waitpipe: object killed
[0x3afbc8] main input debug: TIMER input launching for 'Shoutcast Radio' : 534.411 ms - Total 534.411 ms / 1 intvls (Avg 534.411 ms)
Thanks