code: def libvlc_media_list_index_of_item(p_ml, p_md):
      '''Find index position of List media instance in media list.
      Warning: the function will return the first matched position.
      The L{libvlc_media_list_lock} should be held upon entering this function.
      @param p_ml: a media list instance.
      @param p_md: media instance.
      @return: position of media instance or -1 if media not found.
      '''
      f = _Cfunctions.get('libvlc_media_list_index_of_item', None) or \
          _Cfunction('libvlc_media_list_index_of_item', ((1,), (1,),), None,
                      ctypes.c_int, MediaList, Media)
      return f(p_ml, p_mdf libvlc_media_list_index_of_item(p_ml, p_md):
      '''Find index position of List media instance in media list.
      Warning: the function will return the first matched position.
      The L{libvlc_media_list_lock} should be held upon entering this function.
      @param p_ml: a media list instance.
      @param p_md: media instance.
      @return: position of media instance or -1 if media not found.
      '''
      f = _Cfunctions.get('libvlc_media_list_index_of_item', None) or \
          _Cfunction('libvlc_media_list_index_of_item', ((1,), (1,),), None,
                      ctypes.c_int, MediaList, Media)
      return f(p_ml, p_md)
docs: Find index position of List media instance in media list.
      Warning: the function will return the first matched position.
      The L{libvlc_media_list_lock} should be held upon entering this function.
      @param p_ml: a media list instance.
      @param p_md: media instance.
      @return: position of media instance or -1 if media not found.