[vlc-devel] Find an error in vlm.c

ye zhang yzhang90003 at gmail.com
Wed Sep 27 11:28:32 CEST 2006


in function  Manage( vlc_object_t* p_object ), near line 2471:
                .......
                else
                {
                    if( vlm_MediaControl( vlm, p_media,
p_instance->psz_name,
                                          "stop", 0 ) == VLC_SUCCESS ) i--;
                }

Is it should be 'j--' instead of  'i--';
If use 'i--', 'i' will be little then -1 sometimes. Then the statement
 'vlm_media_t *p_media = vlm->media[i]; ' above will be wrong.

Maybe I have made a mistake. ;-)

Thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20060927/0bbab8a3/attachment.html>


More information about the vlc-devel mailing list