[vlc-devel] Changes to libvlc_new? libvlc_run_interface?

jboileau jboileau at gmail.com
Thu May 29 19:10:47 CEST 2008


Thanks for the reply Pierre.

If I understand correctly: there is no real changes in how I should
use libvlc. If I encounter problems it may simply be that the libvlc
code is not in perfect working order presently because of the
sanitization. At least that clarifies things.

I guess I wasn't very clear. What I meant to point out is that the
behaviour seems to be different when I build my application in debug
mode than release mode. Since I remember from a while back that vlc
add an option for fast mutex under Windows, I wonder if that might
have anything to to with it. If I step in debug it hangs. Otherwise it
runs but does not perform as expected.

I don't have a backtrace of sorts because I don't get a crash. But
here are some traces I was able to produce if this helps. This trace
happened when I was able to call play but the play failed.  These
traces includes some of mine and some of VLC. It seems

Movie - Movie - CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
Movie - Movie - looking for memcpy module: 0 candidates
Movie - Movie - no memcpy module matched "any"
Movie - Movie - thread started
Movie - Movie - thread 4300 (Interaction control) created at priority
0 (interface/interaction.c:377)
Movie - Movie - Input is a meta file: disabling unneeded options
Movie - Movie - `file/xspf-open://C:\Documents and Settings\Jacques
Boileau.JBOILEAU\Application Data\vlc\ml.xspf' gives access `file'
demux `xspf-open' path `C:\Documents and Settings\Jacques
Boileau.JBOILEAU\Application Data\vlc\ml.xspf'
Movie - Movie - creating access 'file' path='C:\Documents and
Settings\Jacques Boileau.JBOILEAU\Application Data\vlc\ml.xspf'
Movie - Movie - looking for access module: 0 candidates
Movie - Movie - no access module matched "file"
Movie - Movie - TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1
intvls (Avg 0.000 ms)
Movie - Movie - open of `file/xspf-open://C:\Documents and
Settings\Jacques Boileau.JBOILEAU\Application Data\vlc\ml.xspf'
failed: could not create access: no access module matched "file"
Movie - Movie - TIMER input launching for 'Media Library' : 1.000 ms -
Total 1.000 ms / 1 intvls (Avg 1.000 ms)
Movie - Movie - waiting for thread completion
Movie - Movie - thread started
Movie - Movie - thread 4372 (preparser) created at priority 0
(playlist/thread.c:78)
Movie - Movie - waiting for thread completion
Movie - Movie - thread started
Movie - Movie - thread 4388 (fetcher) created at priority 0
(playlist/thread.c:106)
Movie - Movie - waiting for thread completion
Movie - Movie - thread started
Movie - Movie - rebuilding array of current - root Playlist
Movie - Movie - rebuild done - 0 items, index -1
Movie - Movie - thread 4396 (playlist) created at priority 0
(playlist/thread.c:115)
Movie - Movie - looking for interface module: 0 candidates
Movie - Movie - no interface module matched "hotkeys,none"
Movie - Movie - TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1
intvls (Avg 0.000 ms)
Movie - Movie - no suitable interface module
Movie - Movie - interface "hotkeys,none" initialization failed
Movie - Movie - looking for interface module: 0 candidates
Movie - Movie - no interface module matched "logger,none"
Movie - Movie - TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1
intvls (Avg 0.000 ms)
Movie - Movie - no suitable interface module
Movie - Movie - interface "logger,none" initialization failed
Movie - Movie - adding item `plugins' ( C:\cygwin\VLC\vlc-0.9.0-git\plugins )
Movie - Created
   Video protocol: OutPlayLocally
   Audio protocol: OutPlayLocally
Movie - Added test.avi
Movie - Starting play of: test.avi
Movie - State = Stopped
Movie - :sout=#duplicate{dst=display}
Movie - Movie - waiting for thread completion
Movie - Movie - thread started
Movie - Movie - thread 1600 (input) created at priority 1 (input/input.c:377)
Movie - Movie - `test.avi' gives access `' demux `' path `test.avi'
Movie - Movie - creating demux: access='' demux='' path='test.avi'
Movie - Movie - looking for access_demux module: 0 candidates
Movie - Movie - no access_demux module matched "any"
Movie - Movie - TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1
intvls (Avg 0.000 ms)
Movie - Movie - creating access '' path='test.avi'
Movie - Movie - looking for access module: 0 candidates
Movie - Movie - no access module matched "any"
Movie - Movie - TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1
intvls (Avg 0.000 ms)
Movie - Movie - open of `test.avi' failed: could not create access: no
access module matched "any"
Movie - State = Error

Jacques

On Thu, May 29, 2008 at 11:27 AM, Pierre d'Herbemont
<pdherbemont at free.fr> wrote:
>
> On May 29, 2008, at 4:46 PM, jboileau wrote:
>
>> Hi,
>>
>> I have downloaded last night sources and built them succesfully. Yeah!
>> That`s a reflief from the ffmpeg errors I was getting. Good work guys.
>> Unfortunatly thought, my win32 application based on libvlc does not
>> run properly now.
>
> VLC is undergoing some sanitization in core... And this sanitization
> triggers some deep libvlccore bugs. That may explain. It may stabilize
> in the following week or months.
>
>> In debug it hangs on libvlc_new, in release the
>> media player is NULL (see code below).
>
> Didn't get it. Do you have a backtrace?
>
>> It worked with the May 15
>> sources. Apart from the name change of the DLLs, is there any other
>> changes I should adapt to? I saw that there is a new function:
>> libvlc_run_interface. Is it something I should be using now?
>
> libvlc_run_interface is expecially useful for vlc. It starts the given
> or the default interface module.
>
> So basically I don't think you want to use it, appart if you want to
> start a telnet backdoor in your app :)
>
> Pierre.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



-- 
Jacques Boileau



More information about the vlc-devel mailing list