[vlc-devel] Re: Find an error in vlm.c
jean-paul.saman at planet.nl
Wed Sep 27 19:13:36 CEST 2006
Jean-Baptiste KEMPF wrote:
> On Wed, Sep 27, 2006, ye zhang wrote :
>> in function Manage( vlc_object_t* p_object ), near line 2471:
>> if( vlm_MediaControl( vlm, p_media,
>> "stop", 0 ) == VLC_SUCCESS )
>> 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.
I doubt the solution as presented above is correct. Examining the code I
wonder if it shouln't be p_media->i_instance-- iso j--;
Could you run a test with p_media->i_instance--; ?
> I think this post on the forum comes to the same conclusion, when i
> comes to -1; it segfaults.
> The line numbers have changed, be careful :D
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel