[vlc-devel] libvlc_media_player_stop NO Return and No response!

Hugo Beauzée-Luyssen beauze.h at gmail.com
Fri Apr 6 11:12:58 CEST 2012


On Fri, Apr 6, 2012 at 8:43 AM, Kaarlo Räihä <kaarlo.raiha at gmail.com> wrote:
> 4. huhtikuuta 2012 21.33 Eben <dangyanbo at live.com> kirjoitti:
>>
>> Dear Members
>>
>>
>>
>>               I got a trouble when I use vlc sdk to develop a video
>> player. It stuck my several days. My IDE is VC2005, MFC project.
>>
>>              In my application, it will initialize some
>> libvlc_media_player_t objects to play some videos in the meantime. But when
>> I called the function libvlc_media_player_stop, no response and no return,
>>
>>        my app just stuck.
>>
>>               Did anyone have this problem? How could I solve it?
>
>
> Do the messages complain something when you call stop?
>
>>
>>            Thanks in advance!
>>
>>
>>
>> Eben
>>
>> Best & Regards
>>
>>
>>
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>

If you call libvlc_media_player_stop from an event callback, it will deadlock.
The stop() function waits for VLC's input thread to terminate. If for
some reason it can't, your program will stuck (which is probably what
happens to you)

Regards,

-- 
Hugo Beauzée-Luyssen



More information about the vlc-devel mailing list